data(cars)
tmp <- tempfile()
write.csv(cars, file=tmp, row.names=FALSE)
m <- mmap.csv(tmp)
colnames(m) <- colnames(cars)
m[]
extractFUN(m) <- as.data.frame # coerce list to data frame upon subset
m[1:3,]
munmap(m)
Run the code above in your browser using DataLab