edar_get_new_data | R Documentation |
Create a new data set based on the provided data frame in which all covariates are kept fixed, except those specified by the user.
edar_get_new_data(data, n, x, cat.values = NULL)
data |
a data frame with the data. Observations must be the rows, variables in the columns. |
n |
integer, size of the new data set |
x |
string with the name of the numeric variable that will vary within the range of its values in the original data set. All other numeric covariates will be set to their average value |
cat.values |
named list of string vectors. The name of each element of the list (the string vectors) must match variable names in the data. The element of the string vectors must be strings with the name of the categories to use in the new data set. To generate the new data set, the numeric columns will be set to their mean value, except the column specified in the parameter |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.