View source: R/impute_dataframe.r
impute_dataframe | R Documentation |
This function uses the Amelia package to impute a given data frame and return the imputed values.
impute_dataframe(df, measurements_per_day, repetitions = 30)
df |
a data frame |
measurements_per_day |
The number of measurements per day in the diary study |
repetitions |
The amount of times the Amelia call should be averaged over. Defaults to 30. The actual number of imputations is five times the value for |
This function returns the modified data frame.
data <- generate_numerical_test_data(40) data impute_dataframe(data,measurements_per_day=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.