read_header_genesis
reads the header of a GENESIS csv.
Usage
read_header_genesis(
...,
start,
lines = 2,
readr_locale = locale(encoding = "windows-1252"),
replacer = NULL,
clean_letters = TRUE
)
Arguments
- ...
arguments to
read_csv2
- start
number of the first line of the header
- lines
number of header lines
- readr_locale
definition of locale() to be passed to read_csv2()
- replacer
a vector that is used as the first K column-names
- clean_letters
make proper variable names? (default: TRUE)
- locale
default encoding is 'windows-1252'
Details
To generate valid column names, the function replaces all special characters (e.g. German öüä) with ASCII letters and removes whitespaces. Multi-line headers are joined but separated with a '_'.