JS.insert: Insert rows into dataset

Description Usage Arguments Value Examples

View source: R/JSinsert.R

Description

JS.insert inserts rows into dataset

Usage

1
JS.insert(locs, inrows, df, rep = T)

Arguments

locs

Row locations to insert the row

inrows

Rows that need to be inserted

df

Dataset

Value

A dataset with inserted rows

Examples

1
2
3
aa <- data.frame(1:6, col = 2)
a <- c(7,7)
JS.insert (c(1,2),c(7,7),aa) 

SophiaJia/Jsurvformat documentation built on Sept. 23, 2017, 1:59 p.m.