Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is_pairlist

Is object a node or pairlist?


Description

  • is_pairlist() checks that x has type pairlist.

  • is_node() checks that x has type pairlist or language. It tests whether x is a node that has a CAR and a CDR, including callable nodes (language objects).

  • is_node_list() checks that x has type pairlist or NULL. NULL is the empty node list.

Usage

is_pairlist(x)

is_node(x)

is_node_list(x)

Arguments

x

Object to test.

Life cycle

These functions are experimental. We are still figuring out a good naming convention to refer to the different lisp-like lists in R.

See Also

is_call() tests for language nodes.


rlang

Functions for Base Types and Core R and 'Tidyverse' Features

v0.4.11
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], mikefc [cph] (Hash implementation based on Mike's xxhashlite), Yann Collet [cph] (Author of the embedded xxHash library), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.