Re: [R] scale subset of data

2009-07-31 Thread Noah Silverman
That works perfectly. Thanks! -N On 7/31/09 2:04 PM, Steve Lianoglou wrote: > Hi, > > On Jul 31, 2009, at 4:13 PM, Noah Silverman wrote: > >> Hi, >> >> This should be an easy one, but I have some trouble formatting the data >> right >> >> I'm trying to replace the column of a subset of a datafra

Re: [R] scale subset of data

2009-07-31 Thread Steve Lianoglou
Hi, On Jul 31, 2009, at 4:13 PM, Noah Silverman wrote: Hi, This should be an easy one, but I have some trouble formatting the data right I'm trying to replace the column of a subset of a dataframe with the scaled data for that column of the subset subset(rawdata, code== "foo", select = a)

[R] scale subset of data

2009-07-31 Thread Noah Silverman
Hi, This should be an easy one, but I have some trouble formatting the data right I'm trying to replace the column of a subset of a dataframe with the scaled data for that column of the subset subset(rawdata, code== "foo", select = a) <- scale( subset(rawdata, code== "foo", select = a) ) It