Description Usage Arguments Examples
View source: R/summary_table.R
Create a grouped summary table
1 | summary_table(x, y)
|
x |
( |
y |
( |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | set.seed(1)
x <- sample(1:100, 50, replace = TRUE)
y <- as.factor(sample(c("Drug", "Placebo", "no treament"), 50, replace = TRUE))
summary_table(x, y)
set.seed(1)
x <- c(
rnorm(50, 115, sd = 25),
rnorm(50, 198, sd = 65),
sample(rnorm(50, 195, sd = 45), 50, TRUE)
)
y <- as.factor(c(
rep("Drug", 50),
rep("Placebo", 50),
rep("no treatment", 50)
))
summary_table(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.