Note that there are some explanatory texts on larger screens.

plurals
  1. USCCurtis
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThanks for this but I'm not able to get your output. In your code after calling `grid.raster(cap,...` I get the warning `Error in UseMethod("as.raster") : no applicable method for 'as.raster' applied to an object of class "NULL"`. I have a pretty fresh instal of R and have already tried this on another machine. Plotting on x11() doesn't produce an error but only plots the legend and title. Are you leaving anything out here? Any idea why this is not working for me? Trying the example from the post I mention also produces this error.
      singulars
    2. CO@ ialm Glad you posed an answer. I've done some further tweaking and have gotten things even faster. Starting elapsed time was 1014.49. Reading data in all at once using `read.fwf` run time goes down to 104.14 most of which was loading time. I was able to get `read.table` to read my data correctly setting `fill=TRUE` and `skip=8`. Run time is now 19.78. Apparently `read.table` is much faster than `read.fwf`. How's that for improvement!!! Over 50 times faster. As far as run times for each iteration of the loop, the times are very small but I observe no nonlinearity. Much thanks and cheers.
      singulars
    3. COThis might help. From an example I found, to read `Daily,24 Feb 2005,2055.30,4337.00` use `tmp <- read.table("demo2.txt", sep = ",")` `z <- zoo(tmp[, 3:4], as.Date(as.character(tmp[, 2]), fo rmat="%d %b %Y"))` I think `read.zoo` is used just to read in the date in the first column. You need read.table etc for your data.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload