Skip to contents

Read CSV/TSV natively

Usage

morie_fetch_csv(path, sep = ",")

Arguments

path

File path.

sep

Field separator ("," or "\t").

Value

A data frame.

Examples

tf <- tempfile(fileext = ".csv")
utils::write.csv(data.frame(a = 1:3, b = c("x", "y", "z")), tf,
                 row.names = FALSE)
morie_fetch_csv(tf)
#>   a b
#> 1 1 x
#> 2 2 y
#> 3 3 z