Learn R Programming

bdc (version 1.1.6)

bdc_scientificName_empty: Identify records with empty scientific names

Description

Flags records with empty or not interpretable scientific names.

Usage

bdc_scientificName_empty(data, sci_names = "scientificName")

Value

A data.frame containing the column ".scientificName_empty". Compliant (TRUE) if 'sci_names' is not empty; otherwise "FALSE".

Arguments

data

data.frame. Containing the species scientific names.

sci_names

character string. The column name with the species scientific name. Default = "scientificName".

Details

This test identifies records missing scientific names (i.e., empty or not applicable NA names)

See Also

Other prefilter: bdc_basisOfRecords_notStandard(), bdc_coordinates_country_inconsistent(), bdc_coordinates_empty(), bdc_coordinates_from_locality(), bdc_coordinates_outOfRange(), bdc_coordinates_transposed(), bdc_country_standardized()

Examples

Run this code
x <- data.frame(scientificName = c("Ocotea odorifera", NA, "Panthera onca", ""))
bdc_scientificName_empty(data = x, sci_names = "scientificName")

Run the code above in your browser using DataLab