[R-sig-Geo] difficulty converting DDD to UTM (PBSmapping/convUL)

Stratford, Jeffrey jeffrey.stratford at wilkes.edu
Sun Jan 23 22:25:27 CET 2011


Hi everyone,

I am attempting to convert points in DDD to UTM (zone 18) using
PBSmapping and I'm getting an error message. 

The code and output:

library(PBSmapping)
dd_sosp <- read.csv("g:\\sosp\\2010\\sosp2010coord.csv", header=T)
attr(dd_sosp, "zone") <- 18
str(dd_sosp)

'data.frame':   109 obs. of  2 variables:
 $ X: num  -75.8 -75.9 -75.8 -75.8 -75.8 ...
 $ Y: num  41.6 41.2 41.2 41.2 41.2 ...

sospUTM <- convUL(dd_sosp)
Error in convUL(dd_sosp) : Missing or invalid projection attribute

Any suggestions to getting this run?

Thanks,

Jeff
*****************************************
Jeffrey A. Stratford, Ph.D.
Department of Health and Biological Sciences
84 W. South St.
Wilkes Univertsity, PA 18766
570-332-2942
http://web.wilkes.edu/jeffrey.stratford/



More information about the R-sig-Geo mailing list