What you can do is to extend the column (list) by an addtional attribute attr(mydataframe[i],"info")<-names(mydataframe)[i] and store theyr names in it.
OK, that's brilliant. Any ideas on how to do this automatically for every column in my dataframe? lapply(dataframe... fails for the obvious reason. Should I do something like this, or is for() to be avoided even in this case?
> for(i in 1:length(a)) {print(names(a)[i])}______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
