Learn R Programming

climtrends (version 1.0.6)

CreateReferenceSeriesFromFilesMean: Create a reference series (averaging)

Description

CreateReferenceSeriesFromFilesMean creates a reference series from two or more series, using averages.

Usage

CreateReferenceSeriesFromFilesMean(vFiles,commonPeriod=NA,refSeriesFile=NA, wholePeriod=FALSE,deviationsFlag=FALSE)

Arguments

vFiles
vector with the file names of the time series
commonPeriod
user defined common period for the resulting reference series, by default the common period to all series
refSeriesFile
reference series file name
wholePeriod
logical, common period=TRUE
deviationsFlag
logical, raw data=TRUE, deviations=FALSE

Value

reference series or none (if the user chose a reference series file name).

Source

Stepanek, P. 2008 AnClim - software for time series analysis Dept. of Geography, Fac. of Natural Sciences http://www.climahom.eu/AnClim.html

References

Stepanek, P. 2008 AnClim - software for time series analysis Dept. of Geography, Fac. of Natural Sciences http://www.climahom.eu/AnClim.html

Examples

Run this code
# c_As00_o.txt, c_Hori2.txt and c_Kada2.txt are from AnClim freeware distribution
setwd(system.file('extdata/', package='climtrends'))
vFiles=c('c_As00_o.txt','c_Hori2.txt','c_Kada2.txt')
refSeries=CreateReferenceSeriesFromFilesMean(vFiles)

Run the code above in your browser using DataLab