is_scalar: Is of length one?

Description Usage Arguments Value Examples

View source: R/others.R

Description

Is of length one?

Usage

1

Arguments

x

object to test

Value

TRUE if length of x is one. Otherwise FALSE

Examples

1
2
is_scalar(c(1, 2))
is_scalar(1)

imanuelcostigan/predrcats documentation built on May 18, 2019, 4:45 a.m.