Learn R Programming

malariaAtlas (version 1.6.3)

getLatitudeColumn: Returns the best latitude column name in df data.frame, if one exists.

Description

Returns the best latitude column name in df data.frame, if one exists.

Usage

getLatitudeColumn(df)

Value

Returns the best column name for latitude - 'latitude', 'lat', or 'y' respectively, or NULL if none of these column names exists in df

Arguments

df

The data.frame, hopefully containing a column for latitude