Skip to contents

Merge rows

Usage

grid_row_merge(grid, columns)

Arguments

grid

A grid created with datagrid().

columns

column(s) in which merge consecutive rows.

Value

A datagrid htmlwidget.

Examples

library(toastui)

datagrid(mtcars[order(mtcars$cyl), 1:5]) %>%
  grid_row_merge(columns = "cyl")
datagrid(mtcars[, 1:8]) %>% grid_row_merge(columns = "cyl") %>% grid_row_merge(columns = "vs")