ComeçarComece de graça

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 exercício faz parte do curso

Scalable Data Processing in R

Ver curso

Instruções do exercício

  • Time the reading of a file using read.delim() five times.
  • Time the reading of a file using read.delim.raw() five times.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# 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 = ___
)
Editar e executar o código