editfile: Read edits edits from free-form textfile

Description Usage Arguments Value

View source: R/editfile.R

Description

This utility function allows for free editrule definition in a file. One can extract only the numerical (type='num'), only the categorical (type='cat') or all edits (default) in which case an editset is returned. The function first parses all assignments in the file, so it is possible to compute or read a list of categories defining a datamodel for example.

Usage

1
editfile(file, type = c("all", "num", "cat", "mix"), ...)

Arguments

file

name of text file to read in

type

type of edits to extract. Currently, only 'num' (numerical), 'cat' (categorical) and 'all' are implemented.

...

extra parameters that are currently ignored

Value

editset with all edits if type=all, editarray if type='cat', editmatrix if type='num', editset with conditional edits if type='mix'. If the return value is a list, the elements are named numedits and catedits.


editrules documentation built on July 2, 2018, 1 a.m.