I am using the filter() function to extract rows from a data frame. When I try to extract based on a numerical variable , it works fine.
filter(Data, Weight == 50)
However, when I try via a categorical failure, I receive an error message
filter(Data, Sex == M)
"Error in filter_impl(.data, quo) : Evaluation error: comparison of these types is not implemented"
I am doing this in rmarkdown, not sure if that makes a difference.
Thanks!