modifier: Create or read a set of data modification rules

View source: R/modifier.R

modifierR 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)



dcmodify documentation built on April 8, 2023, 1:10 a.m.

Related to modifier in dcmodify...