[R] Data frame column

David Winsemius dwinsemius at comcast.net
Fri Mar 5 16:20:27 CET 2010


On Mar 5, 2010, at 8:26 AM, ManInMoon wrote:

>
> I have a big data frame and I have extracted a bit by doing:
>
>> y<-d[1:10,6]
>> y
> [1] Headings 0        -49      -98      -49      -41      -120      
> -155
> -204     -169
> 92329 Levels: -0 -1 -10 -100 -1000 -10000 -10001 -10002 -10003  
> -10004 -10005
> -10006 -10007 -10008 -10009 -1001 -10010 -10011 -10012 -10013 -10014  
> -10015
> -10016 -10017 -10018 -10019 -1002 -10020 -10021 -10022 -10023  
> -10024 ...
> Headings
>>
>
> What does the "levels" means?

See reply to earlier related question.

>
> If I create a similar object as below - I don't get the levels  
> message.
>
>> x <-c(3,4,5,6,3,2,1)
>> x
> [1] 3 4 5 6 3 2 1

Not similar... that's a vetcor. Review your basic R texts.

> -- 


David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list