Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Look for an character pattern in a column, and if it returns a match, add the matching string with several lines either side into a new column [closed]

$
0
0

I have a table in R which I would like to query using grep and return any matches and the surrounding 100 or so characters to a new column. I have looked at other solutions from previous questions but cannot get anything to work.


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>