Object Reference : Object View and Procedure Reference : Series
  
 
clearcontents
Clear (i.e., replace with NAs) a contiguous block of observations in a series.
Removes the series’s history attribute, as shown in the label view of the series.
Syntax
series_name.clearcontents(start_point) n
where start_point specifies the first of n observations to clear. If n is negative, start_point specifies the last of |n| observations to clear. For dated workfiles, start_point should be entered as a date. For panels and undated workfiles, start_point should be an observation number.
Examples
ser.clearcontents(1952Q2) 10
clears 10 observations starting at 1952 quarter 2.
ser.clearcontents(10) -5
clears 5 observations ending at observation number 10.