strict_apply: Strict version of 'apply()'

View source: R/shim-apply.R

strict_applyR Documentation

Strict version of apply()

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

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

Arguments

X, MARGIN, FUN, ...

Passed on to apply()


hadley/strict documentation built on July 5, 2025, 6:46 a.m.