Skip to contents

Examine the column specification

Usage

get_spec(x)

Arguments

x

The data frame object to extract from.

Value

A tibblify specification object.

Examples

df <- tibblify(list(list(x = 1, y = "a"), list(x = 2)))
get_spec(df)
#> tspec_df(
#>   tib_dbl("x"),
#>   tib_chr("y", required = FALSE),
#> )