add_reveal_row: Add a duplicate final row

View source: R/hacks.R

add_reveal_rowR Documentation

Add a duplicate final row

Description

Takes the final row (ie with the highest value of 'reveal_index') of the dataframe 'df', adds +1 to 'reveal_index' and then binds that duplicate final row onto the bottom of 'df'.

Usage

add_reveal_row(df, reveal_index)

Arguments

df

the dataframe

reveal_index

the name of the variable being used


bbcuffer/rcutils documentation built on Nov. 10, 2023, 12:08 p.m.