compute_descriptor: Compute Descriptor

Description Usage Arguments Value

Description

compute_descriptor is wrapper for the apply function to facilitate row or column wise operations on matrix and data.frame objects.

Usage

1
compute_descriptor(x, fun, by = "col", ...)

Arguments

x

A matrix or data.frame

fun

A function defining a descriptor to apply to x.

fun must must operate on a vector basis. The rows or columns of x will be passed as the first argument. Other arguments can be passed with ...

by

A character vector. "row" defines row-wise and "col" defines column-wise operation.

...

Additional arguments to pass to fun

Value

A vector, data.frame/matrix or a list with the computed descriptor values


dsnavega/grnnet documentation built on May 9, 2019, 5 a.m.