Learn R Programming

fabR (version 2.1.0)

read_csv_any_formats: Read a csv file using read_csv and avoid errors

Description

[Experimental] The csv file is read twice to detect the number of lines to use in attributing the column type ('guess_max' parameter of read_csv). This avoids common errors when reading csv files.

Usage

read_csv_any_formats(filename)

Value

A tibble corresponding to the csv read.

Arguments

filename

A character string of the path of the csv file.

See Also

Examples

Run this code
{

try(read_csv_any_formats(filename = tempfile()),silent = TRUE)

}

Run the code above in your browser using DataLab