Certain functions can give bad error message when column is not found from rowData. This is affecting more than the following function as this comes from internal agglomeration function (check all). User cannot do anything based on this information --> improve the message (catch the cause in internal agglomeration function)
library(mia)
data("GlobalPatterns")
summarizeDominance(GlobalPatterns, rank = "test")
Error: 'f' must have the same number of rows as 'x'