Re: [R] issue with numeric

2019-12-18 Thread Brian Kreeger
*snip* Error in cor(D[, 18 + exon_offset], D[, 19 + exon_offset]) : 'x' must be numeric *snip* You are applying the correlation function to non-numeric variables. Brian On Wed, Dec 18, 2019 at 12:23 PM Ana Marija wrote: > Hello, > > I was running this code, located at: > https://github.com/s

Re: [R] dplyr help

2015-07-29 Thread Brian Kreeger
​dplyr solution: bevs %>% group_by(name, sex, drink) %>% summarise(​cost = sum(cost)) %>% select(name, drink, cost, sex) The last select statement puts the output in the column order you wanted in your result. I hope this helps. Brian On Wed, Jul 29, 2015 at 9:37 PM, Jon BR wrote: > Hello,