[R] quickest way convert 1-col df to vector?
Steve Jaffe
sjaffe at riskspan.com
Mon Mar 8 16:52:31 CET 2010
D'oh -- thanks! I'm always forgetting the double-bracket extractor...
-----Original Message-----
From: Erik Iverson [mailto:eriki at ccbr.umn.edu]
Sent: Monday, March 08, 2010 10:50 AM
To: Steve Jaffe
Cc: r-help at r-project.org
Subject: Re: [R] quickest way convert 1-col df to vector?
sjaffe wrote:
> anything shorter than as.vector(as.matrix( df ) )?
df[[1]]
More information about the R-help
mailing list