Re: [R] Getting only label column of a data frame

2008-06-22 Thread Gundala Viswanath
Thanks so much Jim. - Gundala Viswanath Jakarta - Indonesia On Mon, Jun 23, 2008 at 11:22 AM, jim holtman <[EMAIL PROTECTED]> wrote: > Wait. The first column is really the rowname. So you want this: > >> row.names(x) > [1] "11145" "3545" "8951" "11097" > > > On Sun, Jun 22, 2008 at 10:16 PM,

Re: [R] Getting only label column of a data frame

2008-06-22 Thread jim holtman
Wait. The first column is really the rowname. So you want this: > row.names(x) [1] "11145" "3545" "8951" "11097" On Sun, Jun 22, 2008 at 10:16 PM, Gundala Viswanath <[EMAIL PROTECTED]> wrote: > Hi, > > How can I extract the label only from a given data frame. > > Fore example from this data

Re: [R] Getting only label column of a data frame

2008-06-22 Thread jim holtman
Is this what you want: > x V1 V2V3V4V5V6V7V8V9 11145 14.3 17.1 31.2 41.7 45.8 49.8 68.6 70.6 72.9 3545 10.2 15.6 20.9 23.2 31.4 31.7 36.2 48.4 51.9 8951 15.2 17.5 20.0 21.4 32.4 49.7 51.3 58.3 58.9 11097 59.5 65.9 117.5 118.0 118.9 122.5

[R] Getting only label column of a data frame

2008-06-22 Thread Gundala Viswanath
Hi, How can I extract the label only from a given data frame. Fore example from this data frame. > print(dataf) V1 V2 V3 V4 V5 V6 V7 V8 V9 1114514.317.131.241.745.849.868.670.672.9 3545 10.215.620.9