Hi, According to the example below this email, attr(x,"names") is the same as names(x). I am wondering how many attributes there are of a given variable. How to find out what they are? Can I always use some_attribute(x) instead of attr(x, "some_attribute")?
Regards, Peng > x=c(1,2,3) > attr(x,"names")=c("a","b","c") > x a b c 1 2 3 > > y=c(1,2,3) > names(y)=c("a","b","c") > y a b c 1 2 3 ______________________________________________ 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.