Diff of /man/csvSniffer.Rd [000000] .. [f2e496]

Switch to unified view

a b/man/csvSniffer.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/common.R
3
\name{csvSniffer}
4
\alias{csvSniffer}
5
\title{Function which attempts to read in a csv file
6
picking a delimiter from a given set of options}
7
\usage{
8
csvSniffer(path, delim_options = c(",", ";", "\\t"))
9
}
10
\arguments{
11
\item{path}{The path to the csv file to be read}
12
13
\item{delim_options}{A vector of characters from which the
14
delimiter should be chosen}
15
}
16
\value{
17
If successful a data frame containing the csv file
18
if unsuccessful an error is thrown
19
}
20
\description{
21
The function works by counting the number of occurences 
22
of each delimiter on each line and for exactly one 
23
of the delimiter options all lines contain the same number
24
of occurences (>0) then this delimiter is used
25
}
26