Learn R Programming

stringstatic (version 0.1.2)

str_width: Compute the width of a string

Description

Dependency-free drop-in alternative for stringr::str_width(). Results for non-ASCII characters may be inaccurate in R < 4.0.

Usage

str_width(string)

Value

A numeric vector the same length as string.

Arguments

string

Input vector. Either a character vector, or something coercible to one.