Re: [R] Newbie Question: parts of a dataframe

2008-12-30 Thread Patrick Burns
I believe you are looking for: Test[1, 2:6, drop=TRUE] Patrick Burns patr...@burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") glenn wrote: Assuming I have dataframe ³test² with dim = (2,10) say; And that I can choose some o

Re: [R] Newbie Question: parts of a dataframe

2008-12-30 Thread Alexandre Swarowsky
not sure what you want either but reshape package may help, melt function. Sarah Goslee wrote: > On Tue, Dec 30, 2008 at 11:57 AM, glenn wrote: >> Assuming I have dataframe ³test² with dim = (2,10) say; >> >> And that I can choose some of the data; >> >> Test[1,2:6] >> >> How do I turn this data

Re: [R] Newbie Question: parts of a dataframe

2008-12-30 Thread Sarah Goslee
On Tue, Dec 30, 2008 at 11:57 AM, glenn wrote: > Assuming I have dataframe ³test² with dim = (2,10) say; > > And that I can choose some of the data; > > Test[1,2:6] > > How do I turn this data into a list [which I would like to run a function > across]. > Tried as.list but doesn¹t look or feel rig

[R] Newbie Question: parts of a dataframe

2008-12-30 Thread glenn
Assuming I have dataframe ³test² with dim = (2,10) say; And that I can choose some of the data; Test[1,2:6] How do I turn this data into a list [which I would like to run a function across]. Tried as.list but doesn¹t look or feel right. Thanks in advance, it is simple I am sure so apologies for