### Loading temperature data ##
data(SanMartinoPPts)
x <- SanMartinoPPts
## Extracting all the values belonging to February (FEB=2)
extract(x, trgt=2)
## Extracting all the values belonging to the year 1970
extract(x, trgt=1970)
## Extracting all the values belonging to the autumn
extract(x, trgt="SON")
Run the code above in your browser using DataLab