vec_is_list {vctrs}R Documentation

Is the object a list?

Description

vec_is_list() tests if x is considered a list in the vctrs sense. It returns TRUE if:

Usage

vec_is_list(x)

Arguments

x

An object.

Details

Notably, data frames and S3 record style classes like POSIXlt are not considered lists.

Examples

vec_is_list(list())
vec_is_list(list_of(1))

vec_is_list(data.frame())

[Package vctrs version 0.3.4 Index]