summarise_na: Summarise NA values

Description Usage Arguments Value Author(s) Examples

View source: R/summarise_na.R

Description

Summarise NA values

Usage

1
summarise_na(data, arrange.by.value = TRUE, plotit = FALSE)

Arguments

data

a data.frame

arrange.by.value

a logical specifying whether to arrange by value

plotit

a logical specifying whether to plot the output

Value

either (1) a data.frame or (2) a list including a data.frame and a ggplot figure

Author(s)

Daniel Gardiner (daniel.gardiner@phe.gov.uk)

Examples

1
2
3
4
5
6
7
8
9
data = data.frame(geog = c("A", "B", "C", "D", NA, "E", "F", NA),
                  count = c(43, 21, 19, 44, NA, NA, 11, NA),
                  rate = c(1.4, 2.1, 2.0, 3.3, 4.1, 1.0, 3.1, 0.4))

summarise_na(data)

summarise_na(data, arrange.by.value = FALSE)

summarise_na(data, plotit = TRUE)

DanielGardiner/EpiFunc documentation built on July 25, 2019, 10:53 p.m.