collapseRows: Collapse Rows

View source: R/utils-text.R

collapseRowsR Documentation

Collapse Rows

Description

for each group, sets the top row of the group to the group's value. All other rows in the group are set to "". See the example

Usage

collapseRows(df, variable)

Arguments

df

a data frame

variable

group variable to be collapsed

Value

a data frame with an updated variable column


jimbrig/jimstools documentation built on Sept. 12, 2022, 12:08 p.m.