unitjoin: joins a data.frame or vector of strings with variable and...

View source: R/unitjoin.R

unitjoinR Documentation

joins a data.frame or vector of strings with variable and unit separated into a data.frame with variable and unit joined as 'variable (unit)'. Use magclass::unitsplit to split them again

Description

joins a data.frame or vector of strings with variable and unit separated into a data.frame with variable and unit joined as 'variable (unit)'. Use magclass::unitsplit to split them again

Usage

unitjoin(x, unit = NULL, col = "variable")

Arguments

x

data.frame or vector of strings

unit

vector of strings. If NULL, col 'unit' in x is used

col

column name. Default: variable

Value

data.frame or vector of strings, dependent on x


pik-piam/magclass documentation built on June 2, 2025, 9:31 a.m.