I'm trying to access some data that I've stored in PostGIS database using
the package RPostgreSQL. When I tried to load the package
> library(RPostgreSQL)
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared library
'c:/Users/eick/Documents/R/win-library/2.11
The function spDistsN1 is pretty handy for finding the distance between a
point and a set of other points taking into account projections.
Are there any similar functions from finding the distance from a point to
SpatialLines? What about functions to calculate the closest distance
between Spat
Are there any easy function to parse WKT and convert it into a sp object?
E.g. to parse
"MULTILINESTRING((-88.06354 41.80337,-88.06415 41.80297,-88.06447
41.80288,-88.06566 41.80275,-88.06586 41.80277,-88.06596 41.80284,-88.06598
41.8029,-88.06592 41.80433,-88.06592 41.80449,-88.06598 41.8047
n")
else cat("height does not exist\n")
}
foo <- function() { height <- 3; simple() }
foo() # height exists
On Sun, Apr 18, 2010 at 8:27 PM, Stephen G. Eick wrote:
> simple<-function() {
>
> if(exists("height"))
>
> cat("heigh
simple<-function() {
if(exists("height"))
cat("height exists\n")
else
cat("height does not exist\n")
}
foo<-function() {
height<-10
simple()
}
> foo()
height does not exist
Can somebody please explain why "simple" does not find the "height" variable
when I run it?
Is ther