Re: [R-sig-Geo] function to convert 3D geographical coordinates to Cartesian?

2012-12-30 Thread Tom Roche
https://stat.ethz.ch/pipermail/r-sig-geo/2012-December/017102.html > Is there packaged code to convert geographical coordinates (e.g., > longitude, latitude, elevation) to [simple] Cartesian coordinates > in 3-space? Just to clarify: I'm looking for code like that which follows my .sig (to end of

Re: [R-sig-Geo] fitting lag model in R

2012-12-30 Thread Juan Tomas Sayago Gomez
First thing that comes to mind would be to suggest you to use a different method inside the function lagsarlm. In the spdep manual it says "spam" or "Matrix_J" for strictly symmetric weights lists of styles "B" and "C" and since you have a weight matrix of style B. That could fix your problem. J

[R-sig-Geo] Doubts about GLM

2012-12-30 Thread Suzana Stutz
Dear list members. I've been trying to apply GLM for spatial analysis of a marine animal's distribution (as the dependant variable) related to many environmental variables (as the independant ones). But some of them are correlated, for example, the depth increases as the distance to coast increas

Re: [R-sig-Geo] function to convert 3D geographical coordinates to Cartesian?

2012-12-30 Thread Tom Roche
Tom Roche Sun, 30 Dec 2012 00:40:55 -0500 >> Is there packaged code to convert geographical coordinates (e.g., >> longitude, latitude, elevation) to [simple] Cartesian coordinates >> in 3-space? Edzer Pebesma Sun, 30 Dec 2012 11:11:19 +0100 > rgdal::spTransform? I'm aware of that, but don't how

Re: [R-sig-Geo] function to convert 3D geographical coordinates to Cartesian?

2012-12-30 Thread Edzer Pebesma
Tom, I guess you are aware of rgdal::spTransform? On 12/30/2012 06:40 AM, Tom Roche wrote: > > Is there packaged code to convert geographical coordinates (e.g., > longitude, latitude, elevation) to Cartesian coordinates in 3-space? > The spherical-to-Cartesian math is straightforward enough, but

Re: [R-sig-Geo] back to variogram

2012-12-30 Thread Edzer Pebesma
On 12/30/2012 12:02 AM, Hodgess, Erin wrote: > Hello yet again: > > I have a little data set that I want to get a variogram for. However, I keep > getting an error. > >> str(z1.df) > Formal class 'SpatialPointsDataFrame' [package "sp"] with 5 slots > ..@ data :'data.frame':5 obs.