Question: Need help with the wording of code for script. Calculate mean daily return between January and February. (you will need two conditions in your filter()
Need help with the wording of code for script.
Calculate mean daily return between January and February. (you will need two conditions in your filter() function, Date has to be greater than or equal to 1/1/2020 AND less than 3/1/2020, the AND in R is specified with the & sign)
What is the wording for the code in this format data <- filter(data, Date>=as.Date("01-01-2020"))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
