n_char {creditmodel}R Documentation

The length of a string.

Description

Returns the number of "code points", in a string.

Usage

n_char(string)

Arguments

string

A string.

Value

A numeric vector giving number of characters (code points) in each element of the character vector. Missing string have missing length.

Examples

n_char(letters)
n_char(NA)

[Package creditmodel version 1.3.1 Index]