Learn R Programming

tensorr (version 0.1.1)

col_apply: Apply a function to columns of a matrix

Description

Convenience wrapper around apply. Always returns a matrix.

Usage

col_apply(x, f, ...)

Arguments

x

matrix

f

function to apply to each column

...

extra args to f