longitude | R Documentation |
Functions to retrieve coordinates from an object.
longitude(x, ...)
latitude(x, ...)
## Default S3 method:
longitude(x, ...)
## Default S3 method:
latitude(x, ...)
## S3 method for class 'data.frame'
longitude(x, ...)
## S3 method for class 'data.frame'
latitude(x, ...)
lon(x, ...)
lat(x, ...)
long(x, ...)
## S3 method for class 'scsset'
longitude(x)
## S3 method for class 'scsset'
latitude(x)
x |
Object containing coordinates. Coordinates can be extracted from list and
data frame objects if they either have defined |
longitude(scsset)
: Convert numeric longitude coordinates from scsset
objects to decimal degrees.
latitude(scsset)
: Convert numeric latitude coordinates from scsset
objects to decimal degrees.
longitude
, latitude
Extract longitude or latitude coordinates from a data frame or list.
lon
, long
Alias functions for longitude
.
lat
Alias function for latitude
.
x <- read.scsset(2020, valid = 1)
longitude(x)
plot(lon(x), lat(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.