Skip to content
Back to formatted view

Raw Message

Message-ID: <C5497E7D-BE79-4450-9470-FBE083C1223A@gmail.com>
Date: 2011-10-24T15:32:02Z
From: Timothy Bates
Subject: Length of string?
In-Reply-To: <001d01cc925f$90995ca0$b1cc15e0$@charter.net>

Dear Kevin,
# this works
nchar("read the help for length?)
[1] 24


On 24 Oct 2011, at 4:14 PM, Kevin Burton wrote:

> 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
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.