Learn R Programming

freqweights (version 1.0.4)

evaldp: Eval a manip function using a string

Description

Eval a manip function using a string

Usage

evaldp(.data, .fun.name, ..., .envir = parent.frame())

Arguments

.data
a tbl
.fun.name
any manip function
...
string arguments
.envir
environment

Details

Useful for programming with dplyr

References

https://gist.github.com/skranz/9681509

Examples

Run this code
library(dplyr)
iris %>% evaldp(arrange,"Sepal.Length") %>%
         evaldp(filter, "Sepal.Length > 5, Species=='virginica'")

Run the code above in your browser using DataLab