Hi
I tried to filter my data "Data_m2" by my "ESG_Score_Sustainalytics" variable grouping them by years using my "Data_Date_Security_Monthly" . However, it gives me this error. I want my dataset to be organised monthly but at the same time split them by years.
filter(Data_m2, ESG_Score_Sustainalytics, group_by(Year))
Error: Problem with filter() input ..1. Input ..1 is ESG_Score_Sustainalytics.
x Input ..1 must be a logical vector, not a double.
Can someone help me with this error? Where am I wrong?
Thanks