annotate.data.frame(obj, required.fields = c("x", "y"), signif.digits = 3)
c("x","y")
. You could set to character(0)
, for
example, if you don't want to force a check that "x" and "y" be present.signif()
. NULL means to not round at all.varMetadata
are checked: "labelDescription" and "type"If any is missing then they are built as follows:
varMetadata
).
This is the one that you most likely might want to set yourself.
sapply(lapply(pData(obj), is), "[", 1)
. This will become one of "integer", "factor",
"logical", "numeric" or "character", and the front end should know how to render these.Columns that have type "numeric" (but not "integer") are rounded to the given number of significant digits.
Also, this throws an error if "x" or "y" field is missing