insertCol: Insert a column into a data.frame object

View source: R/insertColumn.R

insertColR Documentation

Insert a column into a data.frame object

Description

Insert a column into a data.frame object

Usage

insertCol(x, ind, col.names = NULL, data = NA)

Arguments

x

data.frame

ind

Numeric vector. At which index(es) should the new column(s) be inserted.

col.names

Character vector. Name(s) of the new column(s).

data

Vector, matrix, array or data.frame. Default is NA.


salix-d/salixUtils documentation built on Aug. 14, 2024, 7:11 a.m.