guess_delim {hdd}R Documentation

Guesses the delimiter of a text file

Description

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

Usage

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.

Author(s)

Laurent Berge

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.

Examples


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

guess_delim(iris_path)


[Package hdd version 0.1.1 Index]