Displaying 2 results from an estimated 2 matches for "data_filter".
Did you mean:
data_files
2008 Sep 14
4
Fetching a range of columns
...can fetch all elements between 3
and 5. However I read in from a CSV file, and I would like to fetch all
columns from within a range ( 842-2411). In teh past, I have done this to
fetch just select few columns:
data <- read.csv(filein, header=TRUE, nrows=320, skip=nskip)
data_filter <- data[c(2,12,17)]
write.table(data_filter, fileout, append = TRUE,
sep= ",", row.names= FALSE, col.names = FALSE)
nskip <- nskip+320
This time, however, instead of grabbing columns 2, 12, 17, I woudl like all
columns in the range of...
2008 Aug 25
2
Large Data Set Help
...rge data
set. I have a snippet of the whole data set, and my small snippet is 2GB in
CSV.
Is there a way I can read my csv, select a few columns, and write it to an
output file in real time? This is what I do right now to a small test file:
data <- read.csv('data.csv', header = FALSE)
data_filter <- data[c(1,3,4)]
write.table(data_filter, file = "filter_data.csv", sep = ",", row.names =
FALSE, col.names = FALSE)
This test file writes the three columns to my desired output file. Can I do
this while bypassing the storage of the entire array in memory?
Thank you very...