search for: rr2s

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

Did you mean: rr2
2024 Aug 22
1
paired raster boxplots
...d not only r. Kind regards Sibylle Working example: library(raster) r <- raster(nc=10, nr=5) r[] <- runif(ncell(r), min=10, max=20) * 2 r2 <- raster(nc=10, nr=5) r2[] <- runif(ncell(r2), min=10, max=20) * 2 s <- setValues(r, sample(c(1:4), replace = T, size=50)) rr2s <- stack(r, r2,s) names(rs) <- c('r', 's', 'r2') d <- as.data.frame(rr2s) boxplot(r~s, data= d) [[alternative HTML version deleted]]
2024 Aug 22
1
paired raster boxplots
? Thu, 22 Aug 2024 08:46:03 +0200 SIBYLLE ST?CKLI via R-help <r-help at r-project.org> ?????: > rr2s <- stack(r, r2,s) > > names(rs) <- c('r', 's', 'r2') > > Error in `names<-`(`*tmp*`, value = c("r", "s", "r2")) : > > incorrect number of layer names The error must be happening because the variable named '...
2024 Aug 23
1
paired raster boxplots
...t disroot.org> Sent: Thursday, August 22, 2024 4:50 PM To: SIBYLLE ST?CKLI via R-help <r-help at r-project.org> Cc: sibylle.stoeckli at gmx.ch Subject: Re: [R] paired raster boxplots ? Thu, 22 Aug 2024 08:46:03 +0200 SIBYLLE ST?CKLI via R-help <r-help at r-project.org> ?????: > rr2s <- stack(r, r2,s) > > names(rs) <- c('r', 's', 'r2') > > Error in `names<-`(`*tmp*`, value = c("r", "s", "r2")) : > > incorrect number of layer names The error must be happening because the variable named 'rs...