do_mutate: Create Column

View source: R/mutate-column.R

do_mutateR Documentation

Create Column

Description

Create new column with the value when specified between a symbols less then < and more than > in the standard columns. For example when specified under KJONN as ⁠<2>⁠, a new column KJONN is created with value 2.

This function is applicable for columns ⁠"GEO", "AAR", "KJONN", "ALDER", "UTDANN", "LANDSSB"⁠, all "TABS" and all "VALS".

Usage

do_mutate(dt = NULL, spec = NULL)

Arguments

dt

Input data preferrably in a data.table format but is not mandatory

spec

Specifications data as a data.frame

See Also

Other mutate-column functions: get_mutate_value()


helseprofil/orgdata documentation built on Feb. 3, 2025, 4:55 p.m.