How to transform into numerical data?

VERY new to R.
As in, it took me 1 hour to work around my data <- read.csv("filename.csv") error, type of new to R (apparently my working directory has to be refreshed each time I open R, if you were curious).

I have 3 data columns filled with 50 rows of Yes/No answers (column names= Score1, Score2, Score3) and I need to transform the answers in those 3 columns into numbers where Yes=1, No=2.
Downloaded and loaded tidyverse.
As far as I understand, I should be able to use the transform or mutate function, but no amount of reading into those functions helps me understand how I should be able to use them in reference to my specific dataset.
Any and all help would be highly appreciated

**loaded magrittr