This is a class union, providing a convenient class for coordinates in several formats.

Details

The class accepts coordinates in any of the following formats: 1. SpatialPoints 2. two-columned matrix 3. vector of length 2

Examples

showClass("Coords")
#> Virtual Class "Coords" [package "gdistance"]
#> 
#> No Slots, prototype of class "numeric"
#> 
#> Known Subclasses: 
#> Class "numeric", directly
#> Class "matrix", directly
#> Class "SpatialPoints", directly
#> Class "integer", by class "numeric", distance 2
#> Class "double", by class "numeric", distance 2
#> Class "mts", by class "matrix", distance 2
#> Class "SpatialPointsDataFrame", by class "SpatialPoints", distance 2
#> Class "SpatialPixels", by class "SpatialPoints", distance 2
#> Class "factor", by class "numeric", distance 3
#> Class "SpatialPixelsDataFrame", by class "SpatialPoints", distance 3
#> Class "ordered", by class "numeric", distance 4