str_comb_NA: Count Missing and % of Total

Description Usage Arguments Value Examples

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 May 28, 2019, 1:34 a.m.