Learn R Programming

supernova (version 3.0.0)

insert_row: Insert a row of data into a table.

Description

Insert a row of data into a table.

Usage

insert_row(df, insert_at, contents)

Value

The original data.frame with the row of data inserted.

Arguments

df

The original data.frame.

insert_at

The row in which to insert the data.

contents

The row of contents to insert (should be a vector of length ncol(df)).