quick_audit: Perform a quick audit for missing values at a given Senamhi...

Description Usage Arguments Author(s) Examples

Description

Returns a tibble with the percentage or number of missing values at a station for a given year or year-month and variables.

Usage

1
2
quick_audit(station, variables, by = NULL, report = "pct",
  reverse = FALSE)

Arguments

station

character; a station id number to process or a tbl_df containing the data to process

variables

numeric or character; by default, all variables will be included. Pass a numeric vector to specify columns to include, or pass a character vector to try to match column names

by

character; whether values should be reported annually (by = "year"), monthly (by = "month", or as an overall (default).

report

character; whether values should be reported as percentage missing (report = "pct") or as number of missing values (report = "n")

reverse

Boolean; if TRUE, will show percentage present instead of percentage missing (only applies if report = "pct")

Author(s)

Conor I. Anderson

Examples

1
2
## Not run: quick_audit("000401", "Tmax", reverse = TRUE)
## Not run: quick_audit("000401", 2:10, by = "month", report = "n")

ConorIA/senamhiR documentation built on May 6, 2019, 12:51 p.m.