DMS-class

0th

Percentile

Class "DMS" for degree, minute, decimal second values

The class provides a container for coordinates stored as degree, minute, decimal second values.

Keywords
classes, spatial
Objects from the Class

Objects can be created by calls of the form new("DMS", ...), converted from decimal degrees using dd2dms(), or converted from character strings using char2dms().

See Also

char2dms, dd2dms

Aliases
  • DMS-class
  • print.DMS
  • show,DMS-method
  • coerce,DMS-method
  • as.double.DMS
  • as.numeric.DMS
Examples
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
Documentation reproduced from package sp, version 0.9-94, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.