diff --git a/R/target_market_share.R b/R/target_market_share.R index 72d1538c..33b42dab 100644 --- a/R/target_market_share.R +++ b/R/target_market_share.R @@ -97,7 +97,7 @@ target_market_share <- function(data, abcd <- dplyr::summarize( abcd, production = sum(.data[["production"]]), - .by = -.data[["production"]] + .by = -"production" ) data <- aggregate_by_name_abcd(data)