From 59bfd89f09d948a13a793a9ef17918c66dc289d5 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Mon, 9 Jun 2014 09:59:29 +0200 Subject: [PATCH] doc: update dseries slides to reflect changes --- doc/dseries-and-reporting/dseriesReporting.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/dseries-and-reporting/dseriesReporting.tex b/doc/dseries-and-reporting/dseriesReporting.tex index f574c669a..09968c827 100644 --- a/doc/dseries-and-reporting/dseriesReporting.tex +++ b/doc/dseries-and-reporting/dseriesReporting.tex @@ -467,10 +467,10 @@ would be transformed into \begin{alltt} ts(2001Y:2003Y) \end{alltt} - \myitem Can also use integer indices + \myitem Can also use integer indices (in a roundabout way) \begin{alltt} start = find(ts.dates==2001Y); - ts(start:end); + ts(ts.dates(start:end)); \end{alltt} \myitem NB: Integer indices cannot be used to extract a single observation because of lag/lead notation (see below)