Below we load the data file objects.rda
containing the object coord
. This object was made with the package sp and looks as follows in the console (it may help if you install and explore this package in RStudio yourself):
SpatialPoints:
x y
[1,] 0.62 0.58
[2,] 0.86 0.73
[3,] 0.77 0.25
[4,] 0.83 0.30
[5,] 0.09 0.73
[6,] 0.46 0.91
[7,] 0.60 0.21
[8,] 0.92 0.36
[9,] 0.98 0.45
[10,] 0.04 0.91
Coordinate Reference System (CRS) arguments: NA
coord
? Store it in an object called coord_class
.coord
? Store them in an object called coord_attrib
.coord
contains a set of coordinates. Extract these, taking into account the class of coord
. Store them in an object called coord_mat
.