powered by
Renames the class(it)["name"] attribute and sets class(it)["type"] <- "IntensityTier" (if it is not already set)
class(it)["name"]
class(it)["type"] <- "IntensityTier"
as.it(it, name = "")
IntensityTier object
New name
# NOT RUN { class(it.sample()) class(as.it(it.sample(), name = "New Name")) # }
Run the code above in your browser using DataLab