Learn R Programming

readr (version 0.1.1)

col_types_standardise: Standardise column types.

Description

Standardise column types.

Usage

col_types_standardise(col_types, col_names, guessed_types)

Arguments

col_types
One of NULL, a list, a named list or a string.

If NULL, the column type will be imputed from the first 30 rows on the input. This is convenient (and fast), but not robust. If the imputation fails, you'll need to supply the

col_names
A character vector naming the columns.
rows
A data frame containing the first few rows, parsed as character vectors.