Renames the SPATA2 object.

renameSpataObject(object, sample_name)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

sample_name

Character value. The new sample name.

Value

The updated input object, containing the added, removed or computed results.

Details

Sets slot @sample of all S4 classes within the SPATA2 object to the new name.

Examples

library(SPATA2)

data("example_data")

object <- example_data$object_UKF269T_diet

object <- renameSpataObject(object, sample_name = "my_new_name")