[R] Counting Words

bgnumis bgnum bgnumis at gmail.com
Thu Jan 22 20:30:27 CET 2015


That' s perfect. Many thanks forma your appreciated help.
El 22/01/2015 19:50, "Chel Hee Lee" <chl948 at mail.usask.ca> escribió:

> > x <- c("hola mundo mundo");
> > table(unlist(strsplit(x, " ")))
>
>  hola mundo
>     1     2
> >
>
> Is this what you are looking for?  I hope this helps.
>
> Chel Hee Lee
>
> On 1/22/2015 8:25 AM, bgnumis bgnum wrote:
>
>> Hi all,
>>
>> I want to cout the different words in a text.
>>
>> You see if the text is: "hola mundo mundo" the program will count:
>>
>> hola 1
>> mundo 2
>>
>> Is posible that Cran r have a similar function?
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>>
>>

	[[alternative HTML version deleted]]



More information about the R-help mailing list