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].
here's the code.
stock_data = read.table("/Users/elisabethlussier-arpin/Documents/Besancon/R/real estate/Core RE/s&p_tsx_yreturn.csv", sep=",", header=TRUE)
index_begg = stock_data[ "2000-04-01" ,"Open"] #---> gives NA
index_begg = stock_data[ 2 ,2] #---->works