strict_apply: Strict version of 'apply()'

Description Usage Arguments

View source: R/shim-apply.R

Description

It is a bad idea to use ‘apply()' with data frames because it coerces it’s input to a matrix. This generally leads to poor performance, and will give unexpected results if your data frame gains non-numeric columns in the future

Usage

1
strict_apply(X, MARGIN, FUN, ...)

Arguments

X, MARGIN, FUN, ...

Passed on to [apply()]


hadley/strict documentation built on May 27, 2019, 7:26 a.m.