Description Usage Arguments Value Examples

Count Missing and % of Total

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

`x` |
Vector |

`digits` |
Number of decimal points to round to |

`out` |
return percent or percentage |

`zero2dash` |
automatically change '0 (0)' to '-' |

N (%) of Number missing

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.