Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coordinates-methods

retrieve (or set) spatial coordinates


Description

retrieve (or set) spatial coordinates from (for) spatial data

Methods

obj = "list"

list with (at least) two numeric components of equal length

obj = "data.frame"

data.frame with at least two numeric components

obj = "matrix"

numeric matrix with at least two columns

obj = "SpatialPoints"

object of, or deriving from, SpatialPoints

obj = "SpatialPointsDataFrame"

object of, or deriving from, SpatialPointsDataFrame

obj = "SpatialPolygons"

object of, or deriving from, SpatialPolygons

obj = "SpatialPolygonsDataFrame"

object of, or deriving from, SpatialPolygonsDataFrame

obj = "Line"

object of class Line; returned value is matrix

obj = "Lines"

object of class Lines; returned value is list of matrices

obj = "SpatialLines"

object of, or deriving from, SpatialLines; returned value is list of lists of matrices

obj = "GridTopology"

object of, or deriving from, GridTopology

obj = "GridTopology"

object of, or deriving from, GridTopology

obj = "SpatialPixels"

object of, or deriving from, SpatialPixels

obj = "SpatialPixelsDataFrame"

object of, or deriving from, SpatialPixelsDataFrame

obj = "SpatialGrid"

object of, or deriving from, SpatialGrid

obj = "SpatialGridDataFrame"

object of, or deriving from, SpatialGridDataFrame

Methods for "coordinates<-"

object = "data.frame", value="ANY"

promote data.frame to object of class SpatialPointsDataFrame-class, by specifying coordinates; see coordinates


sp

Classes and Methods for Spatial Data

v1.4-5
GPL (>= 2)
Authors
Edzer Pebesma [aut, cre], Roger Bivand [aut], Barry Rowlingson [ctb], Virgilio Gomez-Rubio [ctb], Robert Hijmans [ctb], Michael Sumner [ctb], Don MacQueen [ctb], Jim Lemon [ctb], Finn Lindgren [ctb], Josh O'Brien [ctb], Joseph O'Rourke [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.