modifier {dcmodify}R Documentation

Create or read a set of data modification rules

Description

Create or read a set of data modification rules

Usage

modifier(..., .file, .data)

Arguments

...

A comma-separated list of modification rules.

.file

(optional) A character vector of file locations.

.data

(optional) A data.frame with at least a column "rule" of type character. Optionally, the following columns of metadata can be provided (all character, except "created" which should be POSIXct): "name", "label", "description", "origin", "created".

Value

An object of class modifier.

Examples

m <- modifier( if (height < mean(height)) height <- 2*height
, if ( weight > mean(weight) ) weight <- weight/2  )
modify(women,m)



[Package dcmodify version 0.9.0 Index]