get_max_int_len: Compute maximum length of formatted integers

View source: R/get_max_int_len.R

get_max_int_lenR Documentation

Compute maximum length of formatted integers

Description

Computes the maximum character length of a vector of integers when they are converted to strings.

Usage

get_max_int_len(num)

Arguments

num

A vector of integer values.

Value

Maximum character length of the integers provided, if they were formatted as strings.

Examples

get_max_int_len(1.0)
get_max_int_len(2)
get_max_int_len(c(2, 25, 467))


toniprice/jute documentation built on Jan. 11, 2023, 8:23 a.m.