Reading CSV in R with zoo
<p>I have a CSV in the following format:</p>

<pre><code>TICKER,PER,DATE,TIME,CLOSE
SYMBOL,1,20160104,1002,14180.0000000
SYMBOL,1,20160104,1003,14241.0000000
</code></pre>

<p>I would like to read it into a time series:</p>

<pre><code>f &lt;- function(a, b) {
    c &lt;- paste(a, b)
    return(strptime(c, format = "%Y%m%d %H%M"))
}
d &lt;- read.zoo("test.csv", FUN = f, index.column = list("DATE", "TIME"))
</code></pre>

<p>And what I get is <code>index does not match data</code>. Why?</p>