Skip to content

Extracting a dataframe column as a dataframe

2 messages · Dimitri Shvorob, Phil Spector

#
), class = c("POSIXt", "POSIXct"), tzone = ""), price = c(321, 
323.5)), .Names = c("time", "price"), row.names = 1:2, class = "data.frame")
c(321, 323.5)

Is there similar syntax that gets "price" as a (single-column) dataframe? (I
know that I can use "subset(... select = ...)")..
Thank you.
#
price
1 321.0
2 323.5

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu
On Sat, 25 Dec 2010, Dimitri Shvorob wrote: