This function is able to update some attributes for gts
, lts
and imu
objects.
For lts
object, the attributes that can be updated are 'start', 'end', 'freq', 'unit', 'name' and 'process'.
For gts
object, the attributes that can be updated are 'start', 'end', 'freq', 'unit' and 'name'.
For imu
object, the attributes that can be updated are 'axis', 'freq', 'unit' and 'name'.If one between 'start' and 'end' is updated, the other one will also be updated, since end-start == (N-1)/freq
must be TRUE, where N
is the number of observations in the object.
If 'freq' is updated, by default 'start' will remain the same, and 'end' will be updated at the same time,
unless you set 'keep.start = F'.
If 'unit' is updated, the old unit will be replaced by the new one, and other attributes will remain the same.
It is different from the unit conversion feature.