Skip to content
Prev 177608 / 398503 Next

data$ID -> I always get a NULL

On Apr 20, 2009, at 4:33 AM, Grze? wrote:

            
So the names of your columns are not "ID" and "kod" but rather "X.ID."  
and "X.kod."

Try instead:
  data$X.ID.
#and:
  data$X.kkod.     # you will need to use both the periods if your  
column names end in periods.
That must have been a different version of data, since data[2,3] from  
the dataframe above should have been   the number 7  number rather  
than a string. I would also suggest that you start naming your  
data.frames something other than "data", since that is a reserved word  
used by quite a few functions.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT