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 returns: could not find function "subset<-" The scale command works individually and the subset command works individually. Can someone help me format this command line correctly? Thanks, -N [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.