[R] to extract data

Christian Ritz ritz at life.ku.dk
Mon Apr 20 09:09:23 CEST 2009


Hi,

maybe the following line works for you:


beechworth.dt.2 <- beechworth.dt[as.numeric(beechworth.dt$Year) %in% 1927:2007, ]


(using as.numeric() to make sure that "Year" is numeric, maybe not needed?).

Christian




More information about the R-help mailing list