Displaying 1 result from an estimated 1 matches for "r58868".
Did you mean:
58868
2012 Apr 01
1
scan() vs readChar() speed
..."a.txt"))
## user system elapsed
## 2.182 0.301 2.538
all.equal(a, b)
## > [1] TRUE
Could someone explain to me why it is faster to scan a textConnection
than the original file? Have I missed a better solution?
Thanks,
baptiste
sessionInfo()
R version 2.15.0 RC (2012-03-29 r58868)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base