The length of the time series, i.e. the number of observation/time pairs, can be determined by using the length function. Thus if obj is an ldats object, its length is given by