This function tries to guess which separator was used in a text delimited file.

.sepguesser(file, sep_list = c(",", "\t", ";", " ", "/"))

Arguments

file

a character, location of a file to read data from.

sep_list

a list, containing the candidates for being identified as separators. Defaults to c(",", "\t", ";"," ", "/").

Value

A character, corresponding to the guessed separator. One of "," (comma), "\t" (tab), ";" (semicolon)," " (whitespace) or "/" (backslash).

References

See https://github.com/federicomarini/ideal for details on the original implementation.