isa_rows_add: Add sample rows to an isatab

Description Usage Arguments Details Value See Also Examples

View source: R/isatools.R

Description

Add sample rows to an isatab

Usage

1
isa_rows_add(x, n, total = FALSE, replicate = TRUE)

Arguments

x

an isatab object

n

number of rows to add

total

if TRUE, the resulting isatab object will have n rows.

replicate

If true (default), the values in the last row of the isatabs will be replicated. Otherwise, empty rows will be added.

Details

Expand the isatab by adding rows. If total parameter is TRUE, the number of rows to be added will be such that the final number of rows is n. However, if n is smaller than current number of rows, no rows will be removed.

Value

An object of class isatab with expanded rows

See Also

isatab

Examples

1
2
3
4
file <- system.file('extdata', 's_isatab.txt', package='isaeditor')
isa_s <- read_isa(file)
isa_new <- isa_rows_add(isa_s, 10, total=TRUE)
n_row(isa_new)

isaeditor documentation built on Sept. 29, 2021, 9:08 a.m.