This function uses fread to guess the delimiter of a text file.

guess_delim(path)

Arguments

path

The path to a text file containing a rectangular data set.

Value

It returns a character string of length 1: the delimiter.

See also

See peek to have a convenient look at the first lines of a text file. See guess_delim to guess the delimiter of a text data set. See guess_col_types to guess the column types of a text data set.

See hdd, sub-.hdd and cash-.hdd for the extraction and manipulation of out of memory data. For importation of HDD data sets from text files: see txt2hdd.

Author

Laurent Berge

Examples


# Example with the iris data set
iris_path = tempfile()
fwrite(iris, iris_path)

guess_delim(iris_path)
#> [1] ","