getCoordinateInfo: getCoordinateInfo

Description Usage Arguments Details Value Examples

View source: R/getCoordinateInfo.R

Description

getCoordinateInfo Find some basic information about the geography in which a lat/long point falls.

Usage

1

Arguments

points

data frame or matrix of points, with longitude in the first column and latitude in the second. Points should be in decimal degrees. (required)

attribute

character string of the type of information desired, accepted inputs are "country", "continent", or "continent classification". (required)

Details

This function returns the name of the country in which a given point is located, or if desired, the continent, the development designation, or the population of the country. Users of the aWhere API often pull weather data for lists of points or fields for which no other geographic information is provided, or receive prepackaged large weather data files identified by points which do not include other geographic information for size reasons. This function helps to retrieve this information quickly if needed for analysis without requiring modification of the original files.

Value

vector of names with factor levels

Examples

1
## Not run: getCoordinateInfo(points = weather_df[, c("longitude", "latitude")], attribute = "country")

aWhereAPI/aWhere-R-Charts documentation built on Dec. 30, 2021, 12:58 p.m.