| list-of-attributes {vctrs} | R Documentation |
list_of attributes
Description
-
list_of_ptype()returns theptyperequired by thelist_of. If noptypeis required, thenNULLis returned. -
list_of_size()returns thesizerequired by thelist_of. If nosizeis required, thenNULLis returned.
Usage
list_of_ptype(x)
list_of_size(x)
Arguments
x |
A list_of. |
Examples
x <- list_of(1, 2)
list_of_ptype(x)
list_of_size(x)
x <- list_of(.ptype = integer(), .size = 5)
list_of_ptype(x)
list_of_size(x)
[Package vctrs version 0.7.3 Index]