Error: no applicable method for 'mutate_' applied to an object of class "character"

Are you sure that this is what you want to do? You are trying to use mutate call on a string "Y" and therefore getting the error you are getting.

In general, it is much easier to help you if you can put your question into reprex. You can find out more about what it is and how to do it here:

1 Like