coordinates: Retrieve Spatial Coordinates

longitudeR Documentation

Retrieve Spatial Coordinates

Description

Functions to retrieve coordinates from an object.

Usage

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)

Arguments

x

Object containing coordinates. Coordinates can be extracted from list and data frame objects if they either have defined longitude and latitude methods already defined, or looking for ‘longitude’ or ‘latitude’ in the field variable names. In the latter case, partial matching is used.

Functions

  • longitude(scsset): Convert numeric longitude coordinates from scsset objects to decimal degrees.

  • latitude(scsset): Convert numeric latitude coordinates from scsset objects to decimal degrees.

Functions

longitude, latitude

Extract longitude or latitude coordinates from a data frame or list.

lon, long

Alias functions for longitude.

lat

Alias function for latitude.

Examples

x <- read.scsset(2020, valid = 1)
longitude(x)
plot(lon(x), lat(x))


TobieSurette/gulf.spatial documentation built on Sept. 26, 2024, 7:41 p.m.