Nothing
#' @title Identify Missing Information - Find records which lack coordinate information
#'
#' @description
#' The `need_to_georeference()` function allows you to find records that are missing coordinates
#' but contain locality information. These records can then be manually georeferenced.
#'
#' @details
#' This function requires no additional packages.
#'
#' @param df A data frame downloaded with `gators_download()`.
#' @inheritParams correct_class
#'
#' @examples
#' need_coords <- need_to_georeference(data)
#'
#' @return Returns a data frame of the points that need to be georeferenced.
#' Information about the columns in the returned data frame can be found in the documentation for `gators_download()`.
#'
#'
#' @export
need_to_georeference <- function(df, longitude = "longitude", latitude = "latitude",
locality = "locality"){
if (NROW(df) == 0) return(df)
for_georeferencing <- df
# ID records with missing latitude and longitude
for_georeferencing <- for_georeferencing[is.na(for_georeferencing[[longitude]]), ]
for_georeferencing <- for_georeferencing[is.na(for_georeferencing[[latitude]]), ]
# ID records with locality information included
for_georeferencing <- for_georeferencing[!is.na(for_georeferencing[[locality]]), ]
for_georeferencing <- for_georeferencing[!grepl("locality: NA, occurrenceRemarks: NA, verbatimLocality: NA", for_georeferencing[[locality]]), ]
return(for_georeferencing)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.