split.data: Splitting the data in a traing set and a test set

Description Usage Arguments Value

View source: R/fit_model.R

Description

Splitting the data in a traing set and a test set

Usage

1
2
## S3 method for class 'data'
split(years, trainingPeriod = 2006:2014, testPeriod = 2015)

Arguments

years

A vector containg the year of each observation

trainingPeriod

A vector defining for which time period the model is trained on (default = 2006:2014)

testPeriod

Defining for which time period the model is tested on (default = 2015)

Value

A list containing the training set and the test set


NorskRegnesentral/rWHAP documentation built on March 2, 2020, 5:31 a.m.