Learn R Programming

bdc (version 1.1.6)

bdc_eventDate_empty: Identify records with empty event date

Description

This function identifies records missing information on an event date (i.e., when a record was collected or observed).

Usage

bdc_eventDate_empty(data, eventDate = "eventDate")

Value

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

Arguments

data

A data frame containing column with event date information.

eventDate

Numeric or date. The column with event date information.

Details

This test identifies records missing event date information (i.e., empty or not applicable NA).

See Also

Other time: bdc_year_from_eventDate(), bdc_year_outOfRange()

Examples

Run this code
collection_date <- c(
  NA, "31/12/2015", "2013-06-13T00:00:00Z", "2013-06-20",
  "", "2013", "0001-01-00"
)
x <- data.frame(collection_date)

bdc_eventDate_empty(data = x, eventDate = "collection_date")

Run the code above in your browser using DataLab