count_hdr_lines: Count the header lines in a data file

Description Usage Arguments Details Value

View source: R/read_functions.R

Description

Count the header lines in a data file

Usage

1
.count_hdr_lines(filename, colname = NA)

Arguments

filename

The path to the data file on disk

colname

One or more expected column names

Details

Header lines are considered to start with # or to be a blank line. Optionally, providing a colname argument, a character vector of one or more colunm names, will consider any rows before that containing the specified column name(s) to be a header row.

Value

the number of header lines in the file


UW-GAC/dbgaptools documentation built on April 30, 2019, 9:41 p.m.