colgrp: Make a Single Column Grouping

colgrpR Documentation

Make a Single Column Grouping

Description

Takes a tibble and groups columns together into a single data column. All columns that are not row indices will be grouped, and the resulting column will be named data_name.

Usage

colgrp(x, data_name, index_name = "group")

Arguments

x

A tibble

data_name

A string, the name of the new column

index_name

A string, the name of the new column index

Value

A grouped tibble


groupr documentation built on March 31, 2023, 10:36 p.m.