Extracting Annotation from Objects

Description

hasAnnotation tells if an object has some -- non empty -- attached annotation.

getAnnotation try extracting embedded annotations. By default, it returns NULL if the object contains no annotation.

setAnnotation uses a suitable annotation<- method if it exists, or sets the annotation string into attribute 'annotation'. It returns the modified object.

Usage

hasAnnotation(object, ...)

getAnnotation(object, ..., null = TRUE)

setAnnotation(object, value)

Arguments

object
an object
...
extra parameters (currently not used)
null
logical that indicates if an empty character string should be return as NULL.
value
new annotation string, e.g., 'hgu133plu2.db'.