# NOT RUN {
## compute quantiles of the first variable for each chunk
## of at most 10kB size
chunk.apply("input.file.txt",
function(o) {
m = mstrsplit(o)
quantile(as.numeric(m[,1]), c(0.25, 0.5, 0.75))
}, CH.MAX.SIZE=1e5)
# }
Run the code above in your browser using DataLab