Learn R Programming

NMsim (version 0.2.0)

dtapply: Apply function and return a data.table

Description

A convenience function that returns a data.table with a column representing the input values and a column with results. This is still experimental and will not work for many input structures.

Usage

dtapply(X, FUN, ...)

Value

a data.table

Arguments

...

arguments passed to lapply

Details

Only functions that return vectors are currently supported. dtapply should support functions that return data.frames.