in_row_headers: Add header rows within a column for values that repeat.

View source: R/in_row_header.R

in_row_headersR Documentation

Add header rows within a column for values that repeat.

Description

Often helpful when wanting to create sub-groupings within a column in a final output.

Usage

in_row_headers(.data, col)

Arguments

.data

A tbl.

col

Column to add subheaders to.

Examples

df <- tibble::tribble(
  ~Label, ~value,
  "A", 1.2,
  "A", 1.3,
  "B", 5.0,
  "C", 4.3,
  "C", 4.1,
  "C", 5.2,
  "D", 6
)
df %>% in_row_headers(Label)

overdodactyl/mRclwhip documentation built on June 30, 2023, 6:24 a.m.