df_qc_spatial: df_qc_spatial

View source: R/df_qc_spatial.r

df_qc_spatialR Documentation

df_qc_spatial

Description

This function identifies points that aren't in the northern hemisphere (i.e. LAT between 0 and 90) and aren't in the western hemisphere (i.e. LON between 0 and 180). By default, it returns the "good" points, but the "return.bad" flag allows it to return only the "bad" points.

Usage

df_qc_spatial(
  df,
  lat.field = "LATITUDE",
  lon.field = "LONGITUDE",
  return.bad = FALSE,
  autoQC = T
)

Arguments

df

the dataframe to be cleaned

lat.field

default is LATITUDE. The field in the dataframe holding the latitudes

lon.field

default is LONGITUDE. The field in the dataframe holding the longitudes

return.bad

the default is FALSE. Normally, only the plottable points are returned. If TRUE, only the rejected points are returned.

autoQC

the default is TRUE. This runs df_qc_spatial() automatically, ensuring that all coordinates are in the Northern hemsisphere (i.e. Latitude between 0 and 90N) and the western hemisphere (i.e. Longitude between -180 and 0W)

Value

data.frame contents depend of the return.bad parameter

Author(s)

Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca

See Also

Other general_use: DDMMSS_to_DD(), DDMMx_to_DD(), aggregator(), clip_by_poly(), combine_lists(), df_sf_to_gpkg(), df_to_sf(), drop_cols(), prepare_shape_fields(), subset_by_time(), updateCheck()


Maritimes/Mar.utils documentation built on Aug. 3, 2024, 9:10 p.m.