Skip to content

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.

12 results for “from:Stachelek, Joseph”

[R-pkg-devel] packages installed on winbuilder
Stachelek, Joseph · May 22, 2015 · r-package-devel

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...

unionSpatialPolygons from the command-line
Stachelek, Joseph · Apr 7, 2016 · r-sig-geo

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...

Quadrat Variance Analyses in R?
Stachelek, Joseph · Feb 2, 2015 · r-sig-geo

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...

Convert ncdf data to dataframe
Stachelek, Joseph · Jun 2, 2016 · r-sig-geo

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...

[R-pkg-devel] packages installed on winbuilder
Stachelek, Joseph · May 22, 2015 · r-package-devel

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...

[R-pkg-devel] appropriate directory for data downloads in examples, demos and vignettes
Stachelek, Joseph · Jun 29, 2015 · r-package-devel

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...

gdistance: costDistance with barriers
Stachelek, Joseph · Mar 12, 2015 · r-sig-geo

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...

SST and chlorophyll data extraction in R
Stachelek, Joseph · Sep 29, 2015 · r-sig-geo

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...

Count values "greater than" in rasterbrick layers
Stachelek, Joseph · Jul 16, 2014 · r-sig-geo

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...

Extracting raster weighted mean without NAs
Stachelek, Joseph · Sep 24, 2014 · r-sig-geo

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...

Translate a net-cdf file with different years to polygon regions.
Stachelek, Joseph · Apr 19, 2016 · r-sig-geo

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...

Translate a net-cdf file with different years to polygon regions.
Stachelek, Joseph · Apr 19, 2016 · r-sig-geo

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 .