split_airnow_data | R Documentation |
Create a training and test data set - test dataset is a fraction of the samples, chosen randomly for each day.
split_airnow_data(df, test_fraction = 0.3, seed = 1977)
df |
A SpatialPointsDataFrame from |
test_fraction |
The fraction of data to withold as the test data set. Default is 0.3. |
seed |
numeric A starting randomization seed. Default is 1977. |
A list with two SpatialPointsDataFrames, test and train
mon_split <- split_airnow_data(an_ws, test_fraction = 0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.