loadTrainTest | R Documentation |
This function returns a list with the train and test data.
loadTrainTest(Data, datetime, predict)
Data |
The historical data |
datetime |
The date time the user wants to predict |
predict |
The value he user wants to predict must be a column name of the data set |
This function returns a list with the train and test data that will be used for train and prediction.
A list with the following components:
trainsData The trainData for the model
testsData The testData to be predict
Aikaterini Chatzopoulou, Kleanthis Koupidis, Charalampos Bratsas
SpecLink <- loadDataSpecLink("163204843","1", X163204843_1) x <- fillMissingValues(SpecLink) datetime <- "2017-01-27 14:00:00" newData <- fillMissingDates (x, datetime) DataList <- loadTrainTest (newData, datetime, "Mean_speed")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.