After running {r} library(dplyr) stockprice$Date <- as.Date(stockprice Date, format =…
- User
After running {r} library(dplyr)
stock_priceDate <- as.Date(index_bse Date, format = "%Y-%m-%d") index_national_indiaDate <- as.Date(stock_price Date"........................................................................................................................This was the step 1 to prepare data
- Assistant
It looks like you're trying to convert the
Datecolumns in three different datasets (stock_price,index_bse, andindex_national_india) into R's Date format. However, the code snippets you provided contain syntax errors, including missing symbols and newline issues. To correct these, you'll want to ensure that theas.Datefunction is called correctly with the proper column specified.Here's how you can correctly structure your code:
r