renameSpataObject: Rename SPATA2 object

renameSpataObjectR Documentation

Rename SPATA2 object

Description

Renames the SPATA2 object.

Usage

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.

Details

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

Value

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

Examples

library(SPATA2)

data("example_data")

object <- example_data$object_UKF269T_diet

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


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.