Learn R Programming

dRiftDM (version 0.3.1)

check_b_coding: Check a B_Coding

Description

Checks if a list satisfies the requirements to be considered a valid b_coding

Usage

check_b_coding(b_coding)

Value

the unmodified list for convenience

Arguments

b_coding

a named list

Details

Checks for...

  • input being a list

  • list is of length three and provides the names "column", "u_name_value", "l_name_value",

  • if b_coding$column provides a single string

  • if b_coding$u_name_value and b_coding$l_name_value provides a single named value of type character or numeric, and that both are of the same type