Re: [R] Rounding behavior

2018-10-09 Thread Ryan Derickson
I thought it might be a floating issue but didn't see the connection. Thanks everyone. On Tue, Oct 9, 2018, 2:00 PM Benoit Vaillant wrote: > Hello, > > On Tue, Oct 09, 2018 at 01:14:54PM -0400, Ryan Derickson wrote: > > Apologies if this is a simple misunderstanding.

[R] Rounding behavior

2018-10-09 Thread Ryan Derickson
Hello, Apologies if this is a simple misunderstanding. round((.575*100),0) gives 57 round(57.5,0) gives 58 Why? Ryan Derickson University of Cincinnati On Tue, Oct 9, 2018, 10:08 AM PIKAL Petr wrote: > Hi > > You could use brute force approach. Just print out "file.names&q

Re: [R] subsetting

2016-02-24 Thread Ryan Derickson
A combination of subsetting and ?substr should get you close to a solution. If the middle sequence you referenced isn't always the same distance from the first character, you may have to involve regular expressions to find "the middle". On Wednesday, February 24, 2016, Bert Gunter wrote: > Have

Re: [R] Mixed Beta Disrubutions

2015-12-28 Thread Ryan Derickson
would benefit if the sources of such comments found other outlets for condescension. Ryan Derickson > On Dec 28, 2015, at 10:32 PM, mesude bayrakci > wrote: > > Hello all, > > This would be my last comments on "politeness" discussion started after my > email, an

Re: [R] subsetting a dataframe

2015-06-09 Thread Ryan Derickson
Lots of ways to do this, I use %in% with bracket notation [row, column]. The empty column argument below returns all columns but you could have conditional logic there as well. dd[dd$rows %in% test_rows, ] On Mon, Jun 8, 2015 at 6:44 PM, Bogdan Tanasa wrote: > Dear all, > > would appreciate y

[R] Specifying plot area in dotchart2

2014-12-20 Thread Ryan Derickson
the whole plot (dots + labels) rather than just the dot area. A reproducible example is below; I want the dot area to be the same physical width across charts regardless of the label width. Any suggestions would be greatly appreciated! Ryan Derickson library(Hmisc) pdf("dotchart2 demo.pdf