Learn R Programming

editrules (version 2.0-3)

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 editas (default) in which case a list is returned. The function first parses all assignments in the file. Every other statement is considered to be an edit.

Usage

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

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.
expandEdits
should edits be expanded with expandEdits? (currently ignored)
...
extra parameters that will be passed to expandEdits

Value

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