No subject

ken_lee ken_lee at tynesys.com
Tue May 7 03:43:31 CEST 2002


Dear all,
      Sometime I need to change data column name,but I catn't do it.
example:
     type<-c("max","min")
    test<-data.frame(class=c("a","a","a","b","b"),value=1:5)

    for (i in 2:length(type)) {
        tmp<-gsummary(test,FUN=type[i],groups=test$class)
        tmp1<-data.frame(class=tmp$class,   type[i]   =  tmp$value)
                                                                             ... error... : I catn't assign "max"   by type[i]
   }

 Thanks
Ken
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list