util_parse_assignments: Utility function to parse assignments

Description Usage Arguments Value

View source: R/util_parse_assignments.R

Description

This function parses labels & level assignments in the format 1 = male | 2 = female. The function also handles m = male | f = female, but this would not match the metadata concept. The split-character can be given, if not the default from SPLIT_CHAR is to be used, but this would also violate the metadata concept.

Usage

1

Arguments

text

Text to be parsed

split_char

Character separating assignments

Value

the parsed assignments as a named list


dataquieR documentation built on Feb. 26, 2021, 5:08 p.m.