refnr: Refining Data Table using a Set of Formulas

Description Usage Arguments Author(s) Examples

View source: R/refnr.R

Description

refnr() performs a data refinement through R script eval function using a formula table.

Usage

1
    refnr(.data, formulas)

Arguments

.data

A data table

formulas

A data table that describes a set of formulas. It is supposed to have only two columns: Name and Formula respectively.

Author(s)

Kim Seonghyun

Examples

1
2
3
4
5
6
  library(refnr)
  formulas <- rbind(c(Name = "Length",
                      Formula = "Sepal.Length + Petal.Length"),
                    c(Name = "Width",
                      Formula = "Sepal.Width + Petal.Width"))
  res <- refnr(iris, formulas)

Example output



refnr documentation built on May 2, 2019, 6:09 a.m.