Skip to content

Length of string?

3 messages · Kevin Burton, Timothy Bates, David Winsemius

#
This is very basic but I have not been able to find an answer. Basically I
want to find the length of a string.

length("Text")

returns 1 so I know that is not right.

Thank you.

Kevin
#
Dear Kevin,
# this works
nchar("read the help for length?)
[1] 24
On 24 Oct 2011, at 4:14 PM, Kevin Burton wrote:

            
#
On Oct 24, 2011, at 11:14 AM, Kevin Burton wrote:

            
?nchar
David Winsemius, MD
West Hartford, CT