Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
I am trying to compile a package through winbuilder. The winbuilder website says that every CRAN package is installed. Does this mean that absolutely every package is installed or just packages that have binary distributions? I am getting a "package...
Hello, I am trying to call "maptools::unionSpatialPolygons()" from the command-line. To illustrate the problem, I can call example(unionSpatialPolygons) from an interactive session but running an R script (testmaptools.R) containing: `library(maptools)` `example(unionSpatialPolygons)` yields: `$ Rscript testmaptools...
I use passage (http://www.passagesoftware.net/) to do quadrat analysis. It accepts command line input so I wrote a shell script that can be called from and return results to R. -----Original Message----- From: R-sig-Geo [mailto:r...
Hi Milu, I would suggest reading your .nc file directly into a raster object using the `raster` package. ### library(raster) ncname <- ("/file_path") ncfname <- paste(ncname, ".nc", sep = "") r <- raster::raster(ncfname) # use raster::stack() if more than one "layer...
I am receiving this error about RcppOctave. I see that it does not have a binary on CRAN because of compiled code issues. My package does not have compiled code itself and it passes CRAN check. I set example code...
Following the answer posted by 'James' at: http://stackoverflow.com/questions/12598242/global-variables-in-packages-in-r I have the user set the data directory by editing a file (yourdatadirpath) which is then read into options() on package load...
Hi Karl, I think the underlying shortest.paths algorithm is wrapping around the x dimension of the raster. I was able to fix by remove vertices in the underlying adjacency matrix. library(gdistance) r <- raster(nrows=18, ncols=36) r...
Hi Antonio, My suggestion would be turn your scripts into Github "gists" so they could be more widely accessible. https://gist.github.com/ Joseph Stachelek -----Original Message----- From: R-sig-Geo [mailto:r-sig-geo-bounces at r-project.org...
Hi Thiago, Ignoring the fact that you have negative rainfall amounts in your example, I would go about this problem by reclassifying the raster brick to a binary classification. Then if you sum you get raw counts. #count wet days...
I think you can avoid returning NA if you use the example code for extract with polygons with weights but change the last two lines to: v <- extract(r, polys, weights=TRUE) sapply(v, function(x) sum(apply(x, 1...
Since your nc file contains multiple layers, you will want to use `raster::stack()` rather than `raster::raster()`. -----Original Message----- From: Stachelek, Joseph Sent: Tuesday, April 19, 2016 8:23 AM To: 'Janka VANSCHOENWINKEL' <janka.vanschoenwinkel at uhasselt.be>; r...
Hi Janka, I think you can simplify your code a lot by opening your nc file directly using the `raster` package rather than messing with `nc_open` calls. ``` ncin <- raster::raster(paste(ncname, ".nc", sep = "")) ``` Then you might use `raster...
Can't find what you're looking for? Try searching with Google .