cbind2: 'cbind' if first argument might be 'NULL'

View source: R/util.R

cbind2R Documentation

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)

Arguments

mat_or_NULL

NULL or a numeric matrix

to_add

A numeric matrix with the same number of rows as mat_or_NULL

Value

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


hrf documentation built on April 3, 2025, 10:36 p.m.