(no subject)

About this list Date view Thread view Subject view Author view Attachment view

From: ken_lee (ken_lee@tynesys.com)
Date: Tue 07 May 2002 - 11:43:31 EST


Message-id: <IPECKKKLFINFHEGMEKKGIEGOCAAA.ken_lee@tynesys.com>

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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:15 EST