Skip to content

Find needed details for vctrs prototype

Usage

cereal_details(x)

Arguments

x

A vector

Value

A list

Examples

cereal_details(factor(letters[1:5], labels = "letter"))
#> $levels
#> [1] "letter1" "letter2" "letter3" "letter4" "letter5"
#> 
cereal_details(factor(LETTERS[3:1], ordered = TRUE))
#> $levels
#> [1] "A" "B" "C"
#> 
cereal_details(as.POSIXct("2023-01-01", tz = "America/New_York"))
#> $tzone
#> [1] "America/New_York"
#>