Re: [R] using "aggregate" when variable names contain spaces

2011-04-18 Thread Dimitri Liakhovitski
That's great thanks a lot, David! On Mon, Apr 18, 2011 at 3:47 PM, David Winsemius wrote: > > On Apr 18, 2011, at 3:40 PM, Dimitri Liakhovitski wrote: > >> That's helpful, thanks! Unfortunately, I cannot refer to all of my >> variables to the left of tilda one by one - I have a lot of them. >> A

Re: [R] using "aggregate" when variable names contain spaces

2011-04-18 Thread David Winsemius
On Apr 18, 2011, at 3:40 PM, Dimitri Liakhovitski wrote: That's helpful, thanks! Unfortunately, I cannot refer to all of my variables to the left of tilda one by one - I have a lot of them. Any way to get them in as a a bunch (somehow using mynames)? fmla <- as.formula(paste( paste("`",

Re: [R] using "aggregate" when variable names contain spaces

2011-04-18 Thread Dimitri Liakhovitski
That's helpful, thanks! Unfortunately, I cannot refer to all of my variables to the left of tilda one by one - I have a lot of them. Any way to get them in as a a bunch (somehow using mynames)? Thanks! On Mon, Apr 18, 2011 at 3:34 PM, David Winsemius wrote: > > On Apr 18, 2011, at 3:19 PM, Dimitr

Re: [R] using "aggregate" when variable names contain spaces

2011-04-18 Thread David Winsemius
On Apr 18, 2011, at 3:19 PM, Dimitri Liakhovitski wrote: Hello! my data set has many variables. Unfortuantely, many of those variables contain spaces in their names. I need advice on: how to refer to variable names in the formula for "aggregate". See example below: ### Generating example data