R/table_indents.R

Defines functions table_indents

#' @export
table_indents <- function(tbl, index, nspaces=6) {
  #given a vector of indices, this will add html indents to the rownames
  spaces = paste( rep("&nbsp;", nspaces), collapse="")
  rownames(tbl)[index] <- paste0(spaces, rownames(tbl)[index])
  tbl
}
audreyrenson/clinRes documentation built on Feb. 14, 2020, 10:27 a.m.