insert_row: Insert a new row made up of the vector 'row_vec' at row...

View source: R/utils-insert-row.R

insert_rowR Documentation

Insert a new row made up of the vector row_vec at row row_ind in

Description

Insert a new row made up of the vector row_vec at row row_ind in

Usage

insert_row(d, row_vec, row_ind, ...)

Arguments

d

A data frame

row_vec

A vector which has the same number of elements as columns in d

row_ind

The row index to insert the new row at. Whatever row was at that index before is pushed down, as are the ones following it

...

Arguments passed to vec2df()

Value

A data frame with the new row inserted


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.