Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to find trailing and leading words of a word using R?

$
0
0

@mathan_leo wrote:

Hello AVians,

I have a text document which has a million words. Now, I need to know how to find trailing and leading words of a word using R.

For example, If I want to find out the words that are coming before and after the word "error". It could be anything like following with leading words

"typo error"
"manual error"
system error"

and with trailing words like

"error corrected"
"error found"
"error occured"

Any idea how to do this? Thanks in advance for your inputs.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles