search for: streami

Displaying 2 results from an estimated 2 matches for "streami".

Did you mean: stream
2006 Mar 07
7
reading in only one column from text file
How do I manipulate the read.table function to read in only the 2nd column??? [[alternative HTML version deleted]]
2006 Mar 08
0
survival
...ea. + seth readBatch <- function(con, batch.size) { colClasses <- rep("character", 20) ## fix for your data ## adjust to pick out the columns that you want read.csv(con, colClasses=colClasses, as.is=TRUE, nrows=batch.size, header=FALSE)[, 1:2] } readTableStreamily <- function(filePath) { BATCH_SIZE <- 5000 ## no idea what a good value is depends on file and RAM con <- file(filePath, 'r') colNames <- readBatch(con, batch.size=1) chunks <- list() i <- 1 done <- FALSE while (!done) { done <-...