util_standardise_ordinal_codes: Compute something comparable from an 'ordered'

View source: R/util_standardise_ordinal_codes.R

util_standardise_ordinal_codesR Documentation

Compute something comparable from an ordered

Description

interpolates categories of an ordinal variable

Usage

util_standardise_ordinal_codes(codes, maxlevel_old, maxlevel_new)

Arguments

codes

numeric() n values

maxlevel_old

integer() number of categories of codes

maxlevel_new

integer() number of categories for output

Value

integer() n values in ⁠{1, ..., maxlevel_new}⁠


dataquieR documentation built on May 29, 2024, 7:18 a.m.