View source: R/modifyDataset.R
modifyDataset | R Documentation |
The function modifies the values of the declared variables used in the random part of the model if they are not unique. Unique values of the variables are required to build correct Z matrix for unsampled population elements.
modifyDataset(data, names)
data |
the population dataset. |
names |
the vector of names of the dataset columns which values should be modified (names of the variables used to define the random part of the model). |
The dataset with modified values of the declared variables.
Tomasz Zadlo
data(realestData)
# some values of "NUTS2" and "NUTS4type" are the same - we will modify them:
modifyDataset(realestData, c("NUTS2", "NUTS4type"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.