Trouble recoding variable

recode() is not a base R function, can you clarify what package comes from? the syntax varies depending on the package.

Ideally, can you please provide a proper REPRoducible EXample (reprex) illustrating your issue?