

   window {base}                                R Documentation

   TTiimmee WWiinnddoowwss

   DDeessccrriippttiioonn::

        `window' is a generic function which extracts the sub-
        set of the object `x' observed between the times
        `start' and `end'.  Methods are available for time
        series and point-processes.

   UUssaaggee::

        window(x, start=NULL, end=NULL, warn=TRUE)

   AArrgguummeennttss::

          x: a time-series or other object.

      start: the start time of the period of interest.

        end: the end time of the period of interest.

       warn: if `FALSE' omit warnings about `start' and `end'
             being out of range.

   NNoottee::

        The `warn' argument is for use by lazy R programmers
        whose code requires `window' to do the checking
        silently.

   SSeeee AAllssoo::

        `time', `ts'.

   EExxaammpplleess::

        data(presidents)
        sixties <- window(presidents, 1960, c(1969,4))

