insert_vals: Insert values at location

View source: R/insert_vals.R

insert_valsR Documentation

Insert values at location

Description

Function to insert values at specified positons within a dataframe and-or vector

Usage

insert_vals(Vec, breaks, newVal)

Arguments

Vec

A data vector where values will be inserted.

breaks

vector of positions where values will be inserted. Here the output will have length(vec)+length(breaks) rows with the values specified in 'newVal' positioned at the 'breaks' positions

newVal

values to be inserted


rystanley/genepopedit documentation built on June 14, 2024, 5:34 p.m.