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