Learn R Programming

do (version 2.0.0.1)

Nchar: Number of Characters

Description

Number of Characters

Usage

Nchar(x)

Value

number of characters in each location

Arguments

x

can be number, strings, verctors, dataframe or matrix.

Examples

Run this code
Nchar("abcd")
Nchar(c("abc","gjh"))
df = data.frame(
  a = c(1,12,12.3),
  b = c("a","ab","abc")
)
Nchar(df)

Run the code above in your browser using DataLab