You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matrix.please <- function(x) {
m <- as.matrix(x[, -1])
rownames(m) <- x[, 1]
m
}
merge.duplicates <- function(x, method = "median") {
switch(method, median = matrix.please(aggregate(x, by = list(row.names(x)), FUN = median)), mean = matrix.please(aggregate(x,
by = list(row.names(x)), FUN = mean)), max = matrix.please(aggregate(x, by = list(row.names(x)),
FUN = max)), min = matrix.please(aggregate(x, by = list(row.names(x)), FUN = min)), var = get.max.var.rows(x))
}
Hi Yihui,
To reproduce this matter, you can use code snippets below:
I got error as:
The text was updated successfully, but these errors were encountered: