[R] Accessing members

GlenB glnbrntt at gmail.com
Tue Dec 29 02:40:26 CET 2009



This is a result of how R treats factors.

There's more than one way to do what I think you're asking for.

I've constructed a smaller version of your data frame to illustrate one
quick way if that's all you need:

> smdat<-
> data.frame(V1=c("AB","AB.C","ABF10"),V2=rep("20091224",3),V3=rep(156.0,3))
> smdat
     V1       V2  V3
1    AB 20091224 156
2  AB.C 20091224 156
3 ABF10 20091224 156
> smdat[1,][1]
  V1
1 AB

-- 
View this message in context: http://n4.nabble.com/Accessing-members-tp990043p990097.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list