array_apply_1D_function: Apply Function to 1 dimension of array along all others

Description Usage Arguments Details Value Examples

View source: R/array_coda.R

Description

Used by a number of functions in the array_coda group.

Usage

1
array_apply_1D_function(a, dimno, f, dimname = NULL)

Arguments

a

input array

f

function to apply to matrix that returns a matrix

dimname

(optional) charachter vector for dimension output from matrix operation

dim

dimension (as integer) along which to apply matrix operation

Details

If the matrix operation does not change the dimension of the array and dimnames is null, uses existing dimnames.

Value

array

Examples

1
2
a <- array(runif(600), dim = c(100, 3, 2))
array_apply_1D_function(a, 2, miniclo)

jsilve24/driver documentation built on Jan. 30, 2022, 12:07 p.m.