I need support with reassigning values

I have a data with in a column with four labels and i tried to reduce it to two using this

  mutate(member_casual = recode(member_casual
                           ,"Subscriber" = "member"
                           ,"Customer" = "casual"))

#> and i get an error that reads: Error in all_trips %>% mutate(member_casual = recode(member_casual, Subscriber = "member", :
could not find function "%>%"

Please kindly help

You most likely have not loaded the library.

Start with:

#Thank you Martin. I will give it a shot.

It worked like magic. Thank you!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.