Read the first line of a delimited file as vector.

read_names(file, delim = guess_delim(file))

Arguments

file

Path to text file.

delim

Character separating column names.

Value

Character vector of column names.

Examples

read_names("date,lgl\n11/09/2016,TRUE")
#> [1] "date" "lgl"