applycols: Apply a function to selected columns

View source: R/primitives.R

applycolsR Documentation

Apply a function to selected columns

Description

Apply a function to selected columns

Usage

applycols(data, cols, fun, ...)

Arguments

data

A data.frame.

cols

Character vector of column names.

fun

Function applied to each element, column, or group.

...

Additional arguments (unused, or passed through depending on the function).

Value

data with the selected columns transformed.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.