csvSniffer: Function which attempts to read in a csv file picking a...

Description Usage Arguments Value

Description

The function works by counting the number of occurences of each delimiter on each line and for exactly one of the delimiter options all lines contain the same number of occurences (>0) then this delimiter is used

Usage

1
csvSniffer(path, delim_options = c(",", ";", "\t"))

Arguments

path

The path to the csv file to be read

delim_options

A vector of characters from which the delimiter should be chosen

Value

If successful a data frame containing the csv file if unsuccessful an error is thrown


scientific-computing-solutions/eventPrediction documentation built on May 29, 2019, 3:44 p.m.