Description Usage Arguments Value Author(s) See Also Examples
Use set.seed
to ensure the splitting of the training and testing sets
is reproducible.
1 | split_input_data(df, fraction = 0.8)
|
df |
Data frame containing |
fraction |
Fraction of observations to form the training set. Default is
|
A named list containing two data frames: training
and
testing
with the class normalweatherr_data
.
Stuart K. Grange
set.seed
, add_date_variables
,
calculate_model
, normalise_for_meteorology
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Make modelling reproducible
set.seed(123)
# Prepare data for modelling
list_input_data <- split_input_data(data_swiss_daily)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.