splice.data.frame | R Documentation |
Splices a data.frame. If the data.frame has groups, tablet() is called for each group in succession, only the last of which requests 'all'. The results are column-bound, and duplicate columns are removed.
## S3 method for class 'data.frame'
splice(x, all = "All", ...)
x |
data.frame |
all |
a column name for ungrouped statistics; can have length zero to suppress ungrouped column |
... |
passed to |
tablet
library(boot)
library(dplyr)
library(magrittr)
melanoma %>%
select(-time, -year) %>%
mutate(sex = factor(sex), ulcer = factor(ulcer)) %>%
mutate(status2 = ifelse(status == 2, 2, 4)) %>%
group_by(status, status2) %>%
splice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.