Skip to contents

Counts the number of digits in a natural number (do not includes zero).

Usage

n_digits_natural(x)

Arguments

x

Numeric vector.

Value

Number of digits in each element of x.

Examples

n_digits_natural(12345)
#> [1] 5