read_labels_from_xl: Read labels or descriptions from an Excel file

Description Usage Arguments Details Value

View source: R/read_labels_from_xl.R

Description

These function reads labels or descriptions from an Excel file and returns them as a named vector (except when reading alternative labels; see Details).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

file

The filename.

idCol, labelCol

For 'read_labels_from_xl()', the name of the columns with the identifiers and the labels.

Details

The 'read_labels_from_xl()' function is the underlying function; users typically don't interact with this function, unless they specified custom column names.

Value

A named vector, unless alternative labels are read, in which case a named nested list is returned. Each list element is named with a decision identifiers, and consist of a named list, where each element is an alternative label, and each name the corresponding alternative value.


Matherion/mdmcda documentation built on Dec. 31, 2020, 3:13 p.m.