Examples
Random Data
randomData is a time series of increasing random numbers with a peak.
1
2
3
4
5
6
7
# R
trendr(df = randomData,
value.colname = 'value',
time.colname = 'date',
output.dir = '',
output.file = 'randomData.csv',
output.plot = T)
Japan GDP
japanGDPData is a subset of the World Banks Gross Domestic Product (GDP) data set for 1960 to 2018.
1
2
3
4
5
6
7
# R
trendr(df = japanGDPData,
value.colname = 'value',
time.colname = 'year',
output.dir = '',
output.file = 'japanGDPData.csv',
output.plot = T)
UK Rainfall
ukRainData is a subset of DEFRA’s uk rainfall data for 1980 to 2012.
1
2
3
4
5
6
7
# R
trendr(df = ukRainData,
value.colname = 'rain_year',
time.colname = 'year',
output.dir = '',
output.file = 'ukRainData.csv',
output.plot = T)