This function tries to guess which separator was used in a list of delimited strings.

.findSeparator(stringList, sepList = c(",", "\t", ";", " ", "/"))

Arguments

stringList

list, a list of strings

sepList

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

Value

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.