Learn R Programming

editrules (version 2.9.5)

editfile: 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"), ...)

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.

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