Learn R Programming

BayesfMRI (version 0.10.1)

cbind2: cbind if first argument might be NULL

Description

cbind, but return the second argument if the first is NULL

Usage

cbind2(mat_or_NULL, to_add)

Value

cbind(mat_or_NULL, to_add), or just to_add if the first argument is NULL.

Arguments

mat_or_NULL

NULL or a numeric matrix

to_add

A numeric matrix with the same number of rows as mat_or_NULL