Learn R Programming

nlist (version 0.1.1)

is_natomic: Is natomic, nlist or nlists

Description

Test whether x is a natomic_object(), nlist_object() or nlists_object().

Usage

is.natomic(x)

is.nlist(x)

is.nlists(x)

Arguments

x

The object to test.

Value

A flag indicating whether x is a natomic object (is atomic and numeric) or inherits from nlist or nlists.

Functions

  • is.natomic: Is natomic

  • is.nlist: Is nlist

  • is.nlists: Is nlists

Examples

Run this code
# NOT RUN {
# is.natomic
is.natomic(list(x = 1))
is.natomic(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)))
# }

Run the code above in your browser using DataLab