On 2011-01-18 04:51, ADias wrote:
Hi,
I have this character vector:
A<-c("Tell me how many different letter this vector has?")
Is there a way with R that it can let me know how many different letters I
have on this vector?
If I use nchar(A) que gives me the number 50. With this function he i
Try this:
table(strsplit(A, "?")[[1]])
On Tue, Jan 18, 2011 at 10:51 AM, ADias wrote:
>
> Hi,
>
> I have this character vector:
>
> A<-c("Tell me how many different letter this vector has?")
>
> Is there a way with R that it can let me know how many different letters I
> have on this vector?
>
Hi,
I have this character vector:
A<-c("Tell me how many different letter this vector has?")
Is there a way with R that it can let me know how many different letters I
have on this vector?
If I use nchar(A) que gives me the number 50. With this function he is
counting all the letters present a
3 matches
Mail list logo