View source: R/SplitPercentageTS.R
SplitPercentageTS | R Documentation |
Splits time series by a given percentage into training test set
SplitPercentageTS(Datavector, Time, Percentage = 80)
Datavector |
[1:n] vector |
Time |
Optional, [1:n] vector |
Percentage |
number between zero and one or one and hundred. Defines |
Percentage is rounded so that Training set is always even-numbered and for the output it is given that n=k+m
List with
TrainingSet |
[1:k] vector, first k entries of |
TrainingTime |
Either |
TestSet |
TestSet, [1:m] vector, last m entries of |
TestTime |
Either |
Michael Thrun
##ToDo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.