I get an error
"Error in if (any(outlier)) { : missing value where TRUE/FALSE needed" when I try to use the rosnerTest, from the package EnvStats.
out1 <- aggregate(x = df$Price, by = list(df$Item), FUN = rosnerTest)
I'm trying to use the aggregate function in place of using for loop to do the rosner test because my data has over 14 million records with about 3 million unique items.