title: Retrieving data in a cell using using row and column name in R
body: <p>I am able to retrieve a cell value when using index of the column and row, but when I use the actual names, its returning NA for some reason. 9520.700195 is the actual value in the cell and its also what I get when I use [2,2].</p>
  <p>here's the code.</p>
  <p>stock_data = read.table(&quot;/Users/elisabethlussier-arpin/Documents/Besancon/R/real estate/Core RE/s&amp;p_tsx_yreturn.csv&quot;, sep=&quot;,&quot;, header=TRUE)</p>
  <p>index_begg = stock_data[ &quot;2000-04-01&quot; ,&quot;Open&quot;] ---&gt; gives NA</p>
  <p>index_begg = stock_data[ 2 ,2] ----&gt;works</p>
  <p>index_begg</p>