extract_header_info: extract_header_info

Description Usage Arguments Details Value

View source: R/utils.R

Description

Extract information from CSV headers.

Usage

1
2
extract_header_info(header_lines, label, filename, required = FALSE,
  multiline = FALSE)

Arguments

header_lines

Character vector holding raw header lines

label

Label to search for - character

filename

Filename (for error reporting purposes)

required

Is this label required? (logical)

multiline

Can this label hold multi-line information? (logical)

Details

CSV files can have headers, commented lines of the form "# Title: xxxx", "# Source: xxxx", etc. Extract this information if present. Note that empty headers are not allowed. This function is called by parse_csv_header.

Value

Extracted label information, as a character vector


rohmin9122/gcam-korea-release documentation built on Nov. 26, 2020, 8:11 a.m.