Learn R Programming

tensorr (version 0.1.1)

row_apply: Apply a function to rows of a matrix

Description

Convenience wrapper around apply. Always returns a matrix.

Usage

row_apply(x, f, ...)

Arguments

x

matrix

f

function to apply to each row

...

extra args to f