str_comb_NA: Count Missing and % of Total

Description Usage Arguments Value Examples

View source: R/str_comb_NA.R

Description

Count Missing and % of Total

Usage

1
2
str_comb_NA(x, digits = 1, out = c("percentage", "percent"),
  zero2dash = T)

Arguments

x

Vector

digits

Number of decimal points to round to

out

return percent or percentage

zero2dash

automatically change '0 (0)' to '-'

Value

N (%) of Number missing

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
x = 1:100
ind = sample(1:100, 10, replace = F)
x[ind] = NA
str_comb_NA(x, out = "percent")
str_comb_NA(x, out = "percentage")

x = 1:200
str_comb_NA(x)

x[ind] = NA
str_comb_NA(x)

Ajfrick/AVRCHelp documentation built on Oct. 26, 2018, 8:17 p.m.