guess_coordinate_columns: Guess longitude and latitude columns in a data frame

View source: R/guess_coordinate_columns.R

guess_coordinate_columnsR Documentation

Guess longitude and latitude columns in a data frame

Description

An internal function to make basemap code more readable

Usage

guess_coordinate_columns(data, lon = NULL, lat = NULL)

Arguments

data

Dataframe containing data for which the limits should be calculated.

lon, lat

Character defining the name of the longitude and latitude columns in data. Use NULL to guess the longitude and/or latitude columns in x.

Details

This is an internal function, which is automatically run by the basemap function.

Value

A named vector of colummn names.

Author(s)

Mikko Vihtakari

See Also

auto_limits, transform_coord, basemap


ggOceanMaps documentation built on May 29, 2024, 5:36 a.m.