search for: goterror

Displaying 3 results from an estimated 3 matches for "goterror".

Did you mean: geterror
2011 Oct 18
1
How to read data sequentially into R (line by line)?
...w to avoid cutting one record from the middle? I mean that if I put nrows = 1000000, I don't know if one record (between marks GG!KK!KK! and GG!KK!KK! is ending up in two files). How to avoid that? My code so far: zz <- file("myfile.txt", "r") fileNo <- 1 repeat{ gotError <- 1 # set to 2 if there is an error # catch the error if not more data tryCatch(input <- read.csv(zz, as.is=T, nrows=1000000, sep='!', row.names=NULL, na.strings="", header=FALSE), error=function(x) gotError <<- 2) if (gotError == 2) break...
2009 Mar 18
1
Reading a file line by line - separating lines VS separating columns
Hello all. I wish to read a large data set into R. My current issue is in getting the data so that R would be able to access it. Using read.table won't work since the data is over 1GB in size (and I am using windows XP), so my plan was to read the file chunk by chunk and each time move it into bigmemory (I'll play with that when the time will come, maybe ff is better ?!). I encountered
2009 Aug 03
3
How to catch an error using try
Sometimes the following function call causes a database exception: > gene.seq <- getSequence (id=gene.map[,"ensembl_transcript_id"], type="ensembl_transcript_id", + seqType="3utr", mart=hmart) I understand the above function must be called by try to capture the eventual error. WHat is not clear to me is how to realize that an