Templates-method: S4 cbind for Templates.

Description Usage Arguments Value Examples

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'Templates,ANY'
cbind2(x, y, ...)

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

## S4 method for signature 'Templates,ANY,ANY,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

1
2
3
4
5
6
7
8
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"

openPrimeR documentation built on Nov. 16, 2020, 2 a.m.