shortcutgenerics: New Generic Functions for annmatrix Class

Description Usage Arguments Details Author(s)

Description

@ operator in base R is used to access the slots within S4 objects. annmatrix makes this operator generic and uses it to select row-annotations from the annmatrix class.

Usage

1
2
3
4
5
6
7
8
9
"@"(object, name)

## Default S3 method:
@(object, name)

@(object, name) <- value

## Default S3 replacement method:
@(object, name) <- value

Arguments

object

R object

name

a character string specifying the slot to select/replace

value

newly assigned value to replace the slot specified by name

Details

@<- replacement in base R is used to change the values of slots within S4 objects. annmatrix makes it generic and the same operator is then used within annmatrix class to change the row annotation values.

Author(s)

Karolis Koncevičius


KKPMW/annmatrix documentation built on Dec. 23, 2018, 10:08 p.m.