climatic_missing: Summarise missing data in a data frame

View source: R/climatic_missing.R

climatic_missingR Documentation

Summarise missing data in a data frame

Description

climatic_missing returns a data table displaying the number and percentage of missing values for an element (and station) in a given time period. The total number of full years are also given.

Usage

climatic_missing(
  data,
  date_time,
  elements,
  station_id = NULL,
  start = TRUE,
  end = FALSE
)

Arguments

data

The data.frame to calculate from.

date_time

The name of the date column in data.

elements

The name of the column in data to apply the function to.

station_id

The name of the station column in data, if the data are for multiple station. The calculations are performed separately for each station.

start

logical(1) If TRUE start date as ...

end

logical(1) If TRUE set end date as ...

Value

Data frame summarising the missing data

Examples

# Summarising missing data in the rainfall, temperature, and sun columns
climatic_missing(data = daily_niger, date_time = "date", 
                 elements = c("rain", "tmax", "tmin", "sunh"),
                 station_id = "station_name")


IDEMSInternational/cdms.products documentation built on July 7, 2023, 10:13 a.m.