D'oh -- thanks! I'm always forgetting the double-bracket extractor...

-----Original Message-----
From: Erik Iverson [mailto:[email protected]] 
Sent: Monday, March 08, 2010 10:50 AM
To: Steve Jaffe
Cc: [email protected]
Subject: Re: [R] quickest way convert 1-col df to vector?



sjaffe wrote:
> anything shorter than as.vector(as.matrix( df ) )?

df[[1]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to