Adds additional data to the object. Can be any piece of information
associated with a cell (examples include read depth, alignment rate,
experimental batch, or subpopulation identity) or feature (ENSG name,
variance). To add cell level information, add to the Seurat object. If adding
feature-level metadata, add to the Assay object (e.g. object[["RNA"]]
)
# S3 method for StdAssay
AddMetaData(object, metadata, col.name = NULL)
object
with metadata added
An object
A vector, list, or data.frame with metadata to add
A name for meta data if not a named list or data.frame