If we want to measure the number of characters, we can use the nchar() function.

[1] 5 10 8[1] 1 1 1[1] 3

Super! The output is the number of characters for each element belonging to the vector.

Maybe nchar() counts the characters of each element in the vector?