3  Read data

library(rtemis)
  .:rtemis 0.99.93 🌊 aarch64-apple-darwin20

rtemis’s read() function allows reading tabular data of various formats:

3.1 Delimited files

Delimited files, particularly when large and containing complex data, can be slow and/or difficult to parse. read()’s delim_reader argument allows to specify which package to use for reading delimited files. Available options:

  • data.table’s fread()
  • arrow’s read_delim_arrow()
  • vroom’s vroom()
  • duckdb’s duckdb_read_csv()

We also await the CRAN release of polars, the R port of the performant data frame structure written in Rust.

sonar <- read("~/Data/iris.csv")
2025-06-04 08:22:39  Reading iris.csv using data.table... [read]
2025-06-04 08:22:39 Read in 149 x 5 [read]
2025-06-04 08:22:39 Done in 2.2e-04 minutes (Real: 0.01; User: 0.01; System: 1e-03). [read]
© 2025 E.D. Gennatas