Learn R Programming

harvestr (version 0.7.1)

plow: Apply over rows of a data frame

Description

Apply over rows of a data frame

Usage

plow(df, f, ..., seed = get.seed(), seeds = gather(nrow(df), seed = seed), time = getOption("harvestr.time", defaults$time()), .parallel = getOption("harvestr.parallel", defaults$parallel()), .progress = getOption("harvestr.progress", defaults$progress()))

Arguments

df
a data frame of parameters
f
a function
...
additional parameters
seed
passed to gather to generate seeds.
seeds
seeds to use.
time
should results be timed?
.parallel
should the computations be run in parallel?
.progress
Show a progress bar?

Value

a list with f applied to each row of df.