So i have this kind of R data frame, with only one obs :
| date | company |
|---|---|
| 2017-08-18 | Apple |
Desired output
I'd like to add rows until today's date :
| date | company |
|---|---|
| 2017-08-18 | Apple |
| 2017-08-19 | Apple |
| 2017-08-20 | Apple |
| . | . |
| . | . |
| . | . |
| 2021-05-26 | Apple |
So that every time the code is launched, it's completed with the actual date. Is it possible ? And if yes, is it possible to automate this as a function so that i can apply it to all of my datasets with this form with a few lines of code only ?
UPDATE
How to do the same when there is more than one date in the data frame, such as :
| date | comapny |
|---|---|
| 2021-05-24 | AMZ |
| 2021-05-25 | AMZ |