is_numeric: Is numeric, nlist or nlists

Description Usage Arguments Value Functions Examples

View source: R/is.R

Description

Ask whether x is a numeric object, nlist_object() or nlists_object().

Usage

1
2
3
4
5

Arguments

x

An object.

Value

A flag indicating whether x is a numeric object or inherits from S3 class nlist or nlists.

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# is_numeric
is_numeric(list(x = 1))
is_numeric(1)

# is_nlist
is_nlist(1)
is_nlist(list(x = 1))
is_nlist(nlist(x = 1))

# is_nlists
is_nlists(nlist(x = 1))
is_nlists(nlists(nlist(x = 2), nlist(x = 3.5)))

nlist documentation built on Sept. 5, 2021, 6:05 p.m.