Refining Data Table using a Set of Formulas

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.