

    \filetitle{dbclip}{Clip all database tseries objects down to specified date range}{dbase/dbclip}

	\paragraph{Syntax}
 
 \begin{verbatim}
 d = dbclip(d,range)
 \end{verbatim}
 \paragraph{Input arguments}
 
 \begin{itemize}
 \item
   \texttt{d} {[} struct {]} - Database or nested databases with tseries
   objects.
 \item
   \texttt{range} {[} numeric {]} - Range to which all tseries objects
   will be clipped.
 \end{itemize}
 \paragraph{Output arguments}
 
 \begin{itemize}
 \item
   \texttt{d} {[} struct {]} - Database with tseries objects cut down to
   \texttt{range}.
 \end{itemize}
 \paragraph{Description}
 
 This functions looks up all tseries objects within the database
 \texttt{d}, including tseries objects nested in sub-databases, and cuts
 off any values preceding the start date of \texttt{range} or following
 the end date of \texttt{range}. The tseries object comments, if any, are
 preserved in the new database.
 
 \paragraph{Example}
 
 \begin{verbatim}
 d = struct();
 d.x = tseries(qq(2005,1):qq(2010,4),@rand);
 d.y = tseries(qq(2005,1):qq(2010,4),@rand)
 
 d =
    x: [24x1 tseries]
    y: [24x1 tseries]
 
 dbclip(d,qq(2007,1):qq(2007,4))
 
 ans =
     x: [4x1 tseries]
     y: [4x1 tseries]
 \end{verbatim}


