我必须使用包含字符串的行作为标准来过滤数据帧RTB.我正在使用dplyr.
d.del <- df %.%
group_by(TrackingPixel) %.%
summarise(MonthDelivery = as.integer(sum(Revenue))) %.%
arrange(desc(MonthDelivery))
Run Code Online (Sandbox Code Playgroud)
我知道我可以使用该函数filter,dplyr但我不知道如何告诉它检查字符串的内容.
特别是我想检查列中的内容TrackingPixel.如果字符串包含RTB我想从结果中删除行的标签.