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


jimbrig2011/jimstools documentation built on Sept. 14, 2022, 1:38 a.m.