Filtering row which contains a certain string using dplyr
Hi guys,
V2 is a column, factor classification.
I am trying to filter the following but I get 0 values:
MSFT <- dplyr::filter(Tweets, grepl("$MSFT", V2) )
Strangely, this works:
MSFT <- dplyr::filter(Tweets, grepl("MSFT", V2) )
But I want MSFT
specifically and not MSFTXXX
or MSFT
e.t.c
Thanks :)