Learn R Programming

climtrends (version 1.0.6)

ValuesBetween2Dates: Get values between two dates

Description

ValuesBetween2Dates returns all the values between two dates, inclusively.

Usage

ValuesBetween2Dates(dataYearSeries,FromDate,ToDate)

Arguments

dataYearSeries
dataframe with climate data
FromDate
starting date
ToDate
ending date

Value

values between two dates.

Examples

Run this code
# xgdcnCA008201000.dat is from ECA COLLEGEVILLE temperature
setwd(system.file('extdata/', package='climtrends'))
dailyCollegeville <- ReadGHCNymd('xgdcnCA008201000.dat')
dailyCollegeville0910 <- ValuesBetween2Dates(dailyCollegeville,'2009-01-01','2010-12-30')

Run the code above in your browser using DataLab