editfile {editrules} | R Documentation |
Read edits edits from free-form textfile
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
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
.