Learn R Programming

climtrends (version 1.0.6)

ValuesBetween2years: Get values between two years

Description

ValuesBetween2years returns all the values between 2 years, that is, the 1st and the last days of a year range.

Usage

ValuesBetween2years(dataYearSeries,intFromYear,intToYear)

Arguments

dataYearSeries
dataframe with climate data
intFromYear
starting year
intToYear
ending year

Value

values between two years.

Examples

Run this code
# xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville=ReadGHCNymd('xgdcnCA008201000.dat')
yearlyCollegeville=YearFuncFromDay(dailyCollegeville)
colnames(yearlyCollegeville) <- c('year','temperature')
yearlyCollegeville<-ValuesBetween2years(yearlyCollegeville,1918,1993)

Run the code above in your browser using DataLab