Templates-method: S4 cbind for Templates.

cbind2,Templates,ANY-methodR Documentation

S4 cbind for Templates.

Description

S4 cbind function for Templates data frame.

S4 rbind function for templates.

Slicing of Templates data frame object.

Set a column in a Templates data frame.

Usage

## S4 method for signature 'Templates,ANY'
cbind2(x, y, ...)

## S4 method for signature 'Templates,ANY'
rbind2(x, y, ...)

## S4 method for signature 'Templates,ANY'
x[i, j, ..., drop = TRUE]

## S4 replacement method for signature 'Templates'
x$name <- value

Arguments

x

The Template data frame.

y

Another data frame.

...

Other arguments to the slice operator.

i

The row index.

j

The column index.

drop

Simplify data frame?

name

The name of the column.

value

The values of the column.

Value

Cbinded template data frame.

Rbinded template data frame.

Subsetted template data frame.

Templates with replaced column.

Examples

data(Ippolito)
template.df <- cbind2(template.df, seq_len(nrow(template.df)))
data(Ippolito)
template.df <- rbind2(template.df, template.df)
data(Ippolito)
template.df <- template.df[1:2,]
data(Ippolito)
template.df$ID[1] <- "newID"

matdoering/openPrimeR documentation built on Feb. 11, 2024, 9:22 p.m.