spec: Examine the column specifications for a data frame

Description Usage Arguments Value Examples

View source: R/col_types.R

Description

cols_condense() takes a spec object and condenses its definition by setting the default column type to the most frequent type and only listing columns with a different type.

spec() extracts the full column specification from a tibble created by readr.

Usage

1
2
3

Arguments

x

The data frame object to extract from

Value

A col_spec object.

Examples

1
2
3
4
5
df <- vroom(vroom_example("mtcars.csv"))
s <- spec(df)
s

cols_condense(s)

vroom documentation built on Aug. 27, 2020, 9:07 a.m.