[R] Help with R coding
Rui Barradas
ru|pb@rr@d@@ @end|ng |rom @@po@pt
Wed May 22 15:45:39 CEST 2019
Hello,
Maybe filter the AllowByLimitFlag values first (not tested)?
tmp1 <- tmp %>%
group_by(HCPCSCode) %>%
filter(AllowByLimitFlag) %>%
summarise(Avg_AllowByLimit =
mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
Hope this helps,
Rui Barradas
Às 13:35 de 22/05/19, Bill Poling escreveu:
> tmp1 <- tmp %>%
> group_by(HCPCSCode) %>%
> summarise(Avg_AllowByLimit = mean(Avg_AllowByLimit[which(Avg_AllowByLimit!=0)]))
>
> # But I need Something like that + This
>
> WHERE AllowByLimitFlag == TRUE
More information about the R-help
mailing list