and so on...
I want to get all words using the mentioned line as a separator. For example,
(1) [1] `2001:0A81:3023:202E:1A02:0001:0001:0001`
(2) [2] `2001:0A81:3023:202E:1A02:0001:0001:0002`
(3) [3] `2001:0A81:3023:202E:1A02:0001:0001:0003`
and so on...
I want to get all words that have 'DriverAdvanJetzHotspotJr108' at first.
(For example, when I input DriverAdvanJetzHotspotJr108, I need to get words that have the term at first. i.e. 2001:0A81:3023:202E:1A02:0001:0001:0001, 2001:0A81:3023:202E:1A02:0001:0001:0002, 2001:0A81:3023:202E:1A02:0001:0001:0003, and so on...)
But I think this is not a good idea for searching because I need to input a large number of lines and I think there is no efficient way to do this.
So, I'm looking for an efficient way to solve this problem.
Is it possible? Thank you.
A:
You could use str_detect from the stringr package:
library(stringr)
df be359ba680
Related links:
Kommentare