add_date_variables: Function to transform a parsed 'date' variable into other...

Description Usage Arguments Value Author(s) Examples

Description

prepare_input_data will check variable names, transform the parsed date variable into other variables, impute missing data, and make correct data types.

Usage

1

Arguments

df

Data frame containing air quality data.

impute

Should missing values be imputed? Numeric variables will be imputed with their median while categorical variables the mode will be used.

Value

Data frame.

Author(s)

Stuart K. Grange

Examples

1
2
3
4
5
6
7
## Not run: 

# Prepare data for modelling
data_swiss_daily <- add_date_variables(data_swiss)


## End(Not run)

skgrange/normalweatherr documentation built on May 23, 2019, 9:34 a.m.