Learn R Programming

dcmodify (version 0.9.0)

modifier: Create or read a set of data modification rules

Description

Create or read a set of data modification rules

Usage

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

Value

An object of class modifier.

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".

Examples

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


Run the code above in your browser using DataLab