define_catvars: Import template(s) for categorical variable definitions

Description Usage Arguments Details Value

View source: R/define_catvars.R

Description

Import template(s) for defining categorical variable codes used in data tables. This function automatically extracts and returns categorical codes, the definitions of which must be supplied by a human. Instructions for filling out the template are at https://clnsmth.github.io/EMLassemblyline/articles/instructions.html.

Usage

1
2
3
4
5
6
define_catvars(
      path,
      data.path = path,
      x = NULL,
      write.file = TRUE
    )

Arguments

path

(character) Path to where the template(s) will be imported.

data.path

(character) Path to where the data files are stored.

x

(named list) Alternative input/output to 'EMLassemblyline' functions. Use template_arguments to create 'x'.

write.file

(logical) Write 'catvars' file to 'path'.

Details

'define_catvars' knows which variables are 'categorical' based on their listing under the 'class' column in the 'attributes_*.txt' file(s).

Existing template(s) will not be overwritten by subsequent calls to 'define_catvars()'.

Value


EDIorg/EMLtools documentation built on May 6, 2019, 3 p.m.