DMS-class {sp} | R Documentation |
The class provides a container for coordinates stored as degree, minute, decimal second values.
Objects can be created by calls of the form new("DMS", ...)
, converted from decimal degrees using dd2dms()
, or converted from character strings using char2dms()
.
WS
:"logical"
TRUE if input value negativedeg
:"numeric"
degreesmin
:"numeric"
minutessec
:"numeric"
decimal secondsNS
:"logical"
TRUE if input value is a Northingsignature(from = "DMS", to = "numeric")
: convert to decimal degrees signature(object = "DMS")
: print data values Roger Bivand Roger.Bivand@nhh.no
data(state) dd2dms(state.center$x) dd2dms(state.center$y, NS=TRUE) as.numeric(dd2dms(state.center$y)) as(dd2dms(state.center$y, NS=TRUE), "numeric") as.numeric.DMS(dd2dms(state.center$y)) state.center$y