Allows to rename features stored inside the @fdata slot.

renameMetaFeatures(object, ...)

Arguments

object

A valid spata-object.

...

The features to be renamed specified according to the following syntax: 'new_feature_name' = 'old_feature_name'.

Value

An upated spata-object.

Examples

library(SPATA2)

data("example_data")

object <- example_data$object_UKF269T_diet

getFeatureNames(object)

object <- renameMetaFeatures(object, "histology_new" = "histology")

getFeatureNames(object)

plotSurface(object, color_by = "histology") # fails
potSurface(object, color_by = "histology_new")