vappend: Append to vector or NULL.

Description Usage Arguments Value Note

View source: R/closest_atlas_regions.R

Description

Append to vector or NULL.

Usage

1
vappend(vec, val)

Arguments

vec

an existing vector or NULL

val

the value to append.

Value

the value itself if vec is NULL, the vec with the appended val otherwise.

Note

There almost certainly is a better way to do this, please open an issue and let me know how if you know it.


dfsp-spirit/brainloc documentation built on Jan. 28, 2022, 12:25 p.m.