update_obj: Update the Attributes of Objects
Description
Internal Function to Update the Attributes of Objects
Usage
update_obj(object, type, new, keep.start = T)
Arguments
type
A string
that contains the attribute to be updated
new
The updated value for the attribute
keep.start
A boolean
value that indicates whether 'start' or 'end' should remain the same when 'freq' is updated
Value
An object with the updated attribute.