As Matteo mentionned, you can use extract, however using layer option
instead of brackets might be safer and more conviennent if you want to
extract multiple layers.
v - extract(stack, sites, mean, na.rm = TRUE, layer=2, n = 1)
Etienne
2012/12/5 Matteo Mattiuzzi matteo.mattiu...@boku.ac.at
Terry,
Maybe a more orthodox way of doing this is to use replace your loop with a
list (I have nothing against lists, it's just more convenient to manipulate
a bunch of objects at once) :
raster_list - lapply(1:8, function(i) {
r - sort(sample(1:180, 2, replace = FALSE))
c -
On 12/06/2012 01:02 PM, Michele Di Marcantonio wrote:
Dear All,
I have some questions about the development of variogram models in R, in
paerticular for setting a minimum lag distance and for modelling 3D
anisotropy.
The aim of our research is to analyze a set of spatial data Z(x;
Dear all,
Â
 I am a R beginner and I want to draw maps with 2 layers. The lower one is
defined by an adminstrative map with borders (for instance the US states
borders and the US county border) and the upper layer is a contour plot (or a
level plot) with artificial data or data coming from
Dear all,
Â
 I am a R beginner and I want to draw maps with 2 layers. The lower one is
defined by an adminstrative map with borders (for instance the US states
borders and the US county border) and the upper layer is a contour plot (or a
level plot) with artificial data or data coming from
Dear List:
I have googled to try to understand analyzing presence-only data and
predicting (?) species outbreaks. Although I was able to find a few
papers, it is somewhat hard for me to figure out adapting my data.
Or, I may be looking at a wrong place. Any suggestions/comments will
be
SH,
What you are looking at sounds like a hazard rate analysis (but with only
location and a dummy variable). You can define a set of neighbor counties
and presence for those counties (or set of counties) as another variable.
You will then have
Outbreak risk = a(presence) + b(location-maybe) +
Hello everyone!
I am drawing maps using spplot function, from sp package, and I am
experiencing problems in visualizing my maps because apparently the volume
of data is big. To avoid waiting I've thought in creating an object and
then export it in another format such as pdf, jpg, png...
I've
Hi Ester,
for trellis objects you need the print command.
Try:
print(world_threat)
within your pdf(), jpg() or png() call and it should work.
HTH
Tim
On 6/12/2012 20:36, Ester Polaina Lacambra wrote:
Hello everyone!
I am drawing maps using spplot function, from sp package, and I am
On 07/12/12 08:36, Ester Polaina Lacambra wrote:
Hello everyone!
I am drawing maps using spplot function, from sp package, and I am
experiencing problems in visualizing my maps because apparently the volume
of data is big. To avoid waiting I've thought in creating an object and
then export it
Hello!
I'm trying to install rgdal on Debian.
I keep getting the checking for gdal.h...no error.
I have updated libgdal1.dev.
I also put the /usr/include and /usr/include/gdal in my PATH.
Any ideas as to what is wrong, please?
I have a feeling that it is something very simple.
Thanks,
Erin
Thanks Etienne and Erin. Both good approaches that seem to work
Regards
Terry
From: Etienne B. Racine [mailto:etienn...@gmail.com]
Sent: Thursday, 6 December 2012 11:19 PM
To: Hodgess, Erin
Cc: Beutel, Terry S; r-sig-geo@r-project.org
Subject: Re: [R-sig-Geo]
2012/12/6 Hodgess, Erin hodge...@uhd.edu
Hello!
I'm trying to install rgdal on Debian.
I keep getting the checking for gdal.h...no error.
I have updated libgdal1.dev.
I also put the /usr/include and /usr/include/gdal in my PATH.
Any ideas as to what is wrong, please?
I have a
13 matches
Mail list logo