I would like to only use the rows in my csv
file that correspond to a specific date. I have seen many good ways to do this, however, they all require you to actually know that certain date and specify it in your code. Since I will be running this program frequently, what I am looking for is a fully automated process where I would not have to continue to change the specific date in my code. My data set looks something like this (Fortunately, I always want to read from the bottom, so I can use tail if need be):
Date Ticker
... ....
2015-12-31 TIF
2016-01-31 DD
2016-01-31 ADP
Essentially, I am asking if there is a way to say read.csv("df.csv", *only rows with same date as last row*)
.
I know that subsetting based on date is possible or there may be some way to do it like this:
x <-tail(df, *only rows with same date as last row*)
however, after some time, my data set will get quite large, and I don't think I would like to continue to read in such a large data set every time.