I have to filter a data frame using as criterion those row in which is contained the string RTB
.
I’m using dplyr
.
d.del <- df %>%
group_by(TrackingPixel) %>%
summarise(MonthDelivery = as.integer(sum(Revenue))) %>%
arrange(desc(MonthDelivery))
I know I can use the function filter
in dplyr
but I don’t exactly how to tell it to check for the content of a string.
In particular I want to check the content in the column TrackingPixel
. If the string contains the label RTB
I want to remove the row from the result.