[R] problem with retreaving column from a data.frame

2010-04-20 Thread venkata kirankumar
Hi all, I have a problem with retreaving column from a data.frame that is I have a data.frame named "temp" in that dataframe some column are there whose names are "IDENTIFIER""UNIQUEID" "TRIALGROUPSID" "GRPNUMBER" "GRPDESC" "SEXDID""STDID" "STUDYTYPE" "SDID"

Re: [R] problem with retreaving column from a data.frame

2010-04-20 Thread Thomas Stewart
Maybe you want something like this. temp<-data.frame(id=rbinom(10,5,.5),grp=rbinom(10,3,.3),stdid=rnorm(10)) kk<-"stdid" temp[,kk] -tgs On Tue, Apr 20, 2010 at 7:32 AM, venkata kirankumar wrote: > Hi all, > I have a problem with retreaving column from a data.frame that is > > I have a data.fra

Re: [R] problem with retreaving column from a data.frame

2010-04-20 Thread David Winsemius
On Apr 20, 2010, at 7:32 AM, venkata kirankumar wrote: Hi all, I have a problem with retreaving column from a data.frame that is I have a data.frame named "temp" in that dataframe some column are there whose names are "IDENTIFIER""UNIQUEID" "TRIALGROUPSID" "GRPNUMBER" "GRPDESC"