Transform entire fieldbook according to data a dictionary
metamorphosis(fieldbook, dictionary, from, to, index, colnames)
List with two objects. 1. New data frame. 2. Dictionary.
Data frame with the original information.
Data frame with new names and categories. See details.
Column of the dictionary with the original names.
Column of the dictionary with the new names.
Column of the dictionary with the type and level of the variables.
Character vector with the name of the columns.
The function require at least three columns.
1. Original names (from
).
2. New names (to
).
3. Variable type (index
).