
Add Cell Metadata
addCellMetadata.RdAdd a new column to the cellMetadata slot of a SpatialMap or Region object.
Arguments
- object
A SpatialMap or Region object
- metadata
The metadata to add. A data.frame, vector, or list. If passing a data.frame with row names, or a named vector or list, these names will be used for indexing when adding the metadata.
- col.names
New column names (if not already a data.frame)
- overwrite
Whether to overwrite existing columns in case of a column name match
- ...
Arguments passed to
.smapply
Details
See vignette("AnalysisGuide3_Unsupervised_clustering") & vignette("AnalysisGuide6_Neighborhoods")
for example workflows that make use of this function.