I'm trying to subset two years of microclimate data from a larger dataset in R. I can subset one year, but am struggling to subset two years in the same operation.
This operation works fine:
ChamberTemp <- subset(ChamberTemp,
subset=year=="2011",
select=c(year,month,chamber,cat1.avg,cat2.avg,cat3.avg))
How do I subset by two years? i.e. 2011 and 2012
Thank you!