Learn R Programming

readr (version 0.1.0)

col_names_standardise: Standardise column names

Description

Standardise column names

Usage

col_names_standardise(col_names, header)

Arguments

col_names
Either TRUE, FALSE or a character vector of column names.

If TRUE, the first row of the input will be used as the column names, and will not be included in the data frame. If FALSE, column names will be generated automatically: X1, X2, X3 etc.

If col_names is a character vector, the values will be used as the names of the columns, and the first row of the input will be read into the first row of the output data frame.