renameSpatialTrajectory.Rd
Renames spatial trajectory.
renameSpatialTrajectory(object, id, new_id, overwrite = FALSE)
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
Character value. The current ID of the spatial trajectory to be renamed.
Character value. The new ID of the spatial trajectory.
Logical value. Must be TRUE
to allow overwriting.
argument_dummy params
library(SPATA2)
data("example_data")
object <- example_data$object_UKF269T_diet
plotSpatialTrajectories(object)
object <- renameSpatialTrajectory(object, id = "horizontal_mid", new_id = "Horizontal_Mid_Cap")
plotSpatialTrajectories(object)