Learn R Programming

tidytlg (version 0.1.5)

insert_empty_rows: Inserts empty rows into a data frame

Description

Inserts empty rows into a data frame

Usage

insert_empty_rows(huxme, newrows = huxme$newrows)

Value

A data frame with added new empty rows.

Arguments

huxme

data.frame The input data frame.

Details

gentlg allows for formatting the input table based on formatting columns (see gentlg()). One of the formatting mechanisms is empty row insertion. This function inserts the empty rows based on the newrows column in the data frame. The new rows are inserted before the rows with value 1 in the newrows column.