h_null_if_scalar: Getting 'NULL' for scalar object

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

[Stable]

A simple helper function that returns NULL if x is a scalar object, i.e. an object of length equals 1. Otherwise it returns 1L.

Usage

1

Arguments

x

any object for which length function is defined.

Value

NULL if x is of length 1, otherwise, 1L.

Examples

1
2

0liver0815/onc-crmpack-test documentation built on Feb. 19, 2022, 12:25 a.m.