Compare read.delim() and read.delim.raw()
When processing a sequence of contiguous chunks of data on a hard drive, iotools
can turn a raw object into a data.frame
or matrix
while - at the same time - retrieving the next chunk of data. These optimizations allow iotools
to quickly process very large files.
Este ejercicio forma parte del curso
Scalable Data Processing in R
Instrucciones del ejercicio
- Time the reading of a file using
read.delim()
five times. - Time the reading of a file using
read.delim.raw()
five times.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Load the iotools and microbenchmark packages
___
___
# Time the reading of files
___(
# Time the reading of a file using read.delim five times
___("mortgage-sample.csv", header = FALSE, sep = ","),
# Time the reading of a file using read.delim.raw five times
___("mortgage-sample.csv", header = FALSE, sep = ","),
times = ___
)