splice.data.frame: Splice A Data Frame

splice.data.frameR Documentation

Splice A Data Frame

Description

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.

Usage

## S3 method for class 'data.frame'
splice(x, all = "All", ...)

Arguments

x

data.frame

all

a column name for ungrouped statistics; can have length zero to suppress ungrouped column

...

passed to tablet

Value

tablet

Examples

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

tablet documentation built on Sept. 16, 2023, 1:08 a.m.