Skip to contents

make_shrthnd_num() allows you to construct a shrthnd_num vector from a numeric vector of data values and a character vector of shorthand markers.

Usage

make_shrthnd_num(x = numeric(), tags = character(), digits = 2L)

Arguments

x

A numeric vector

tags

A character vector

digits

The number of digits to format the numeric vector with

Value

A shrthnd_num vector

Examples

make_shrthnd_num(c(1:3, NA, 4:5, NA), c("", "", "", "[c]", "", "[e]", NA))
#> <shrthnd_num[7]>
#> [1]  1      2      3     NA [c]  4      5 [e] NA