powered by
vec_is_list() tests if x is considered a list in the vctrs sense. It returns TRUE if:
vec_is_list()
x
TRUE
x is a bare list with no class.
x is a list explicitly inheriting from "list".
"list"
vec_is_list(x)
An object.
Notably, data frames and S3 record style classes like POSIXlt are not considered lists.
# NOT RUN { vec_is_list(list()) vec_is_list(list_of(1)) vec_is_list(data.frame()) # }
Run the code above in your browser using DataLab