metamorphosis: Transform fieldbooks based in a dictionary

View source: R/metamorfosis.R

metamorphosisR Documentation

Transform fieldbooks based in a dictionary

Description

Transform entire fieldbook according to data a dictionary

Usage

metamorphosis(fieldbook, dictionary, from, to, index, colnames)

Arguments

fieldbook

Data frame with the original information.

dictionary

Data frame with new names and categories. See details.

from

Column of the dictionary with the original names.

to

Column of the dictionary with the new names.

index

Column of the dictionary with the type and level of the variables.

colnames

Character vector with the name of the columns.

Details

The function require at least three columns.

1. Original names (from).

2. New names (to).

3. Variable type (index).

Value

List with two objects. 1. New data frame. 2. Dictionary.


inti documentation built on Sept. 11, 2024, 8:04 p.m.