apply_codebook: Apply a codebook to a dataset

Description Usage Arguments Value

View source: R/apply_codebook.R

Description

Given a codebook and a dataset this function returns a dataset where the column classes have been modified to fit and factors have been supplied with human readable levels.

Usage

1
apply_codebook(codebook, dataset)

Arguments

codebook

List of class reporter:codebook or character. A character vector of length 1 is assumed to be the codebook file path and is passed to import_codebook(). No default.

dataset

Dataframe. The dataset to which the codebook should be applied. No default.

Value

A tibble.


martingerdin/reporter documentation built on Aug. 28, 2020, 12:05 a.m.