Re: [R] comparison of large data set

2012-12-30 Thread Irucka Embry
t.org >Subject: Re: [R] comparison of large data set > >Irucka, > > >You could assign names to the compare.all list for example ... > > names(compare.all) <- paste0("Obs", 1:54) > >Then, when you create the subset list, justbig, it will have the appropr

Re: [R] comparison of large data set

2012-12-28 Thread Adams, Jean
t; > > > <-Original Message-> > >From: Adams, Jean [jvad...@usgs.gov] > >Sent: 12/21/2012 1:25:24 PM > >To: iruc...@mail2world.com > >Cc: r-help@r-project.org > >Subject: Re: [R] comparison of large data set > > > >Irucka, > > &g

Re: [R] comparison of large data set

2012-12-28 Thread Irucka Embry
which site locations are successful (> 0.7) and which ones are not (< 0.7). Thank-you Jean. Irucka <-Original Message-> >From: Adams, Jean [jvad...@usgs.gov] >Sent: 12/21/2012 1:25:24 PM >To: iruc...@mail2world.com >Cc: r-help@r-project.org >Subject: Re: [R] c

Re: [R] comparison of large data set

2012-12-21 Thread Adams, Jean
; justbig <- modeldepths[[compare.all > 0.7]] > Error in modeldepths[[compare.all > 0.7]] : > recursive indexing failed at level 2 > > Once again, thank-you for your assistance. > > Irucka Embry > > > <-Original Message-> > >From: Adams, Jean [

Re: [R] comparison of large data set

2012-12-21 Thread Adams, Jean
Irucka, I did not test this code out on any data, but I think it will work. Jean # a function to read in the data as a matrix of logicals myreadfun <- function(file) { as.matrix(read.ascii.grid(file)$data)!=0 } # names of the 54 modeled depth files modfiles <- paste0("MaxFloodDepth_", 1:54, ".

[R] comparison of large data set

2012-12-20 Thread Irucka Embry
Hi, how are you? I have the following truncated R code: fileobs <- "MaxFloodDepth_Observed.txt" file1 <- "MaxFloodDepth_1.txt" file2 <- "MaxFloodDepth_2.txt" ... file54 <- "MaxFloodDepth_54.txt" observeddepth = as.matrix(read.ascii.grid(fileobs)$data) observeddepth[observeddepth!=0]<-1 model