modifyDataset: Modification of the values of the variables in the dataset
Description
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.
Usage
modifyDataset(data, names)
Value
The dataset with modified values of the declared variables.
Arguments
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).