summarize which preserves important columns for direct labels.
dl.summarize <- function ### summarize which preserves important columns for direct labels. (OLD, ### data frame ... ){ rownames(OLD) <- NULL NEW <- unique(transform(OLD,...)) to.copy <- names(OLD)[!names(OLD)%in%names(NEW)] for(N in to.copy) NEW[,N] <- OLD[,N] NEW }
Please contact Toby Dylan Hocking if you are using directlabels or have ideas to contribute, thanks! |
Documentation website generated from source code version 2021.2.24 (git revision bb6db07 Mon, 14 Jun 2021 22:38:45 +0530) using inlinedocs. |
validate |