Rule metadata are key-value pairs where the value is a simple (atomic) string or number.
meta(x, ...)meta(x, name) <- value
# S4 method for rule
meta(x, ...)
# S4 method for rule,character
meta(x, name) <- value
# S4 method for expressionset
meta(x, simplify = TRUE, ...)
# S4 method for expressionset,character
meta(x, name) <- value
an R object
Arguments to be passed to other methods
[character]
metadata key
Value to set
Gather all metadata into a dataframe?
Other expressionset-methods:
as.data.frame()
,
as.data.frame,expressionset-method
,
created()
,
description()
,
label()
,
names<-,rule,character-method
,
origin()
,
plot,validator-method
,
summary()
,
variables()
,
voptions()
v <- validator(x > 0, y > 0)
# metadata is recycled over rules
meta(v,"foo") <- "bar"
# assign metadata to a selection of rules
meta(v[1],"fu") <- 2
# retrieve metadata as data.frame
meta(v)
# retrieve metadata as list
meta(v,simplify=TRUE)
Run the code above in your browser using DataLab