Anonymous user
Word frequency: Difference between revisions
→{{header|R}}
Line 3,823:
=={{header|R}}==
===
I chose to remove apostrophes only if they're followed by an s (so "mom" and "mom's" will show up as the same word but "they" and "they're" won't). I also chose not to remove hyphens.
<lang R>
Line 3,859:
</pre>
===
This version is purely functional using the native pipe operator in R 4.1+ and runs in less than a second.
<lang R>
|