title: getSymbols with csv in Quantmod R
body: <p>I am trying to upload a group of symbols into the package quantstrat using <code>quantmod::getSymbols</code>.</p>
  
  <p>The symbols I am loading are not available on Yahoo (they are South African stocks), so I need to load them from a local directory and from .csv files.</p>
  
  <p>My symbols file looks as follows:</p>
  
  <pre><code>head(symbols)
  
  [1] "SHFJ" "FSRJ" "RDFJ" "GRTJ" "MTNJ" "SLMJ"....
  </code></pre>
  
  <p>My symbol price history are in separate csv files, and each contain a date column and OHLC columns, with a header only for the OHLC prices.</p>
  
  <p>I use the function <code>getSymbols.csv</code> function as follows:</p>
  
  <pre><code>getSymbols.csv(symbols, env, dir="E:/data/CData_Files_NB/", return.class = "xts", extension="csv")
  </code></pre>
  
  <p>but I get the following error message</p>
  
  <pre><code>loading  SHFJ .....done.
  Error in `colnames&lt;-`(`*tmp*`, value = c("SHFJ.Open", "SHFJ.High","SHFJ.Low",  : length of 'dimnames' [2] not equal to array extent
  </code></pre>
  
  <p>I would much appreciate it if anyone could show me what I am doing wrong. I am not sure if there is another way to load stock prices into the quantstrat package.</p>