[Rpy] Syntax for obtaining column headers

2009-06-10 Thread Tyler Erickson
I am trying to read in a R-formatted datafile using RPy. When I read in the file using R and display the data, the column headers are included. $ R > attach(".RDatalongrun",pos=2) > dat<-get("longrun",pos=2) > dat[1:5,1:9] time index lat lon aglgrdht foot sampt tem

Re: [Rpy] Syntax for obtaining column headers

2009-06-11 Thread Tyler Erickson
e(colnames) = " + str(type(colnames)) print colnames now produces a Python list of the columns: type(dat) = type(colnames) = ['time', 'index', 'lat', 'lon', 'agl', 'grdht', 'foot', 'sampt', 'temp0',