Learn R Programming

groupr (version 0.1.2)

colgrp: 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")

Value

A grouped tibble

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