Re: [R] Extracting a dataframe column as a dataframe
x['price'] price 1 321.0 2 323.5 - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley
[R] Extracting a dataframe column as a dataframe
> x = structure(list(time = structure(c(1020232904.818, 1020232904.818 ), class = c("POSIXt", "POSIXct"), tzone = ""), price = c(321, 323.5)), .Names = c("time", "price"), row.names = 1:2, class = "data.frame") > x1 = x[,c("price")] > dput(x1) c(321, 323.5) Is there similar syntax that gets "pri