I have the following data frame:
id total_transfered_amount day
1 1000 2
1 2000 3
1 3000 4
1 1000 1
1 10000 4
2 5000 3
2 6000 4
2 40000 2
2 4000 3
2 4000 3
3 1000 1
3 2000 2
3 3000 3
3 30000 3
3 3000 3
需要使用dplyr包,针对每个id分别过滤'total_transfered_amount'列中高于90百分位数的行,例如,我需要过滤以下行:
2 40000 2
3 30000 3
quantile
进行检查。 - akrun