I am currently trying to merge two dataframes that have the following format:
`Company Name` Date `Press Release`
<chr> <dttm> <chr>
1 ExxonMobil 2021-05-27 00:00:00 Mena Report
2 Shell 2021-05-27 00:00:00 Mena Report
3 JPMorgan 2021-05-27 00:00:00 Mena Report
4 Shell NA DeSmogBlog
5 ExxonMobil NA DeSmogBlog
6 ExxonMobil 2021-04-20 00:00:00 The Guardian
and
Date `Equity Price` `Company Name`
<chr> <dbl> <chr>
1 07/30/21 153. JPMorgan
2 07/29/21 153 JPMorgan
3 07/28/21 152. JPMorgan
4 07/27/21 151. JPMorgan
5 07/26/21 152. JPMorgan
6 07/23/21 151. JPMorgan
I need to merge them by 'Date', but I can not convert the 'Date' format of the second dataset into POSIXct POSIXt. I already tried to run the following code, but it does not go:
n.equity <- as.POSIXct(equity$Date)
```