Description Usage Arguments Value Author(s) Examples
Summarise NA values
1 | summarise_na(data, arrange.by.value = TRUE, plotit = FALSE)
|
data |
a data.frame |
arrange.by.value |
a logical specifying whether to arrange by value |
plotit |
a logical specifying whether to plot the output |
either (1) a data.frame or (2) a list including a data.frame and a ggplot figure
Daniel Gardiner (daniel.gardiner@phe.gov.uk)
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.