## Set a temporal working directory:
wd <- tempdir()
wd0 <- setwd(wd)
## Copy an example file of homogenization results:
file.copy(exampleFiles('Temp_1991-2000.rda'),'.')
## Now run the examples:
dahstat('Temp', 1991, 2000)
dahstat('Temp', 1991, 2000, stat='q', prob=0.4)
dahstat('Temp', 1991, 2000, stat='tnd')
dahstat('Temp', 1991, 2000, stat='series')
## 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