% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bdcr_quality_check.R
\name{bdcr_quality_check}
\alias{bdcr_quality_check}
\title{Quality check for occurrence records}
\usage{
bdcr_quality_check(df, min_year = 1950)
}
\arguments{
\item{df}{A `tibble` of occurrence records (output of `bdcr_occurrences()`).}

\item{min_year}{Integer. Minimum acceptable year. Default 1950.}
}
\value{
The same `tibble` with an additional `quality_flag` column.
  Possible values:
  \describe{
    \item{`"ok"`}{No issues detected.}
    \item{`"no_coords"`}{Missing coordinates.}
    \item{`"geospatial_issue"`}{`geospatialKosher == FALSE`.}
    \item{`"taxonomic_issue"`}{`taxonomicKosher == FALSE`.}
    \item{`"old_record"`}{Year before `min_year`.}
  }
}
\description{
Adds a `quality_flag` column to an occurrence tibble. Requires that
`geospatialKosher` and `taxonomicKosher` are logical — a condition
guaranteed by `bdcr_occurrences()`.
}
\examples{
\dontrun{
df <- bdcr_occurrences("Panthera onca", rows = 50)
bdcr_quality_check(df)
}
}
