View source: R/q.rename_headers.R
q.rename_headers | R Documentation |
Format table headers depending on the type of analysis being conducted.
q.rename_headers(x, type="default")
x |
data frame |
type |
Type of analysis. Specify one of these options: |
For categorical variables, adds "n (
Returns a tibble of results
Abdul Malik Sulley
df.header <- c("#", "Group A", "Group B", "p.val") row1 <- c("Day 7", 20, 50, 0.040) row2 <- c("Day 14", 3, 12, 0.010) df <- rbind.data.frame(row1, row2) names(df) <- df.header q.rename_headers(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.