I want to filter the iris dataframe to only return rows where the value is greater than 2 in the sepal.length,sepal.width,petal.length, and petal.width fields using the filter and across functions. I have the below code:
iris%>%
filter(across(c(Sepal.Length, Sepal.Width , Petal.Length, Petal.Width), >2))
The error message is that there is: Error: unexpected '>' in:
Can anyone suggest amendments to the code to solve this?