## Set a temporal working directory and generate input files:
wd <- tempdir()
wd0 <- setwd(wd)
## copy example daily RR, TX and TN homogenization results:
file.copy(exampleFiles('RR_1981-1995.rda'),'.')
file.copy(exampleFiles('TX_1981-1995.rda'),'.')
file.copy(exampleFiles('TN_1981-1995.rda'),'.')
## Now run the example:
climatol2rclimdex('RR','TX','TN',1981,1995)
## Return to user's working directory:
setwd(wd0)
## Input and output files can be found in directory:
print(wd)
Run the code above in your browser using DataLab