Learn R Programming

campfin (version 1.0.11)

read_names: Read column names

Description

Read the first line of a delimited file as vector.

Usage

read_names(file, delim = guess_delim(file))

Value

Character vector of column names.

Arguments

file

Path to text file.

delim

Character separating column names.

Examples

Run this code
read_names("date,lgl\n11/09/2016,TRUE")

Run the code above in your browser using DataLab