I'm new to R and got stuck in my assignment when couldn't convert the text values to numerical. I've tried a number of solutions but they are not working. As an example, when doing the following, I overwrite the first line of code, basically I need to mutate both and then convert it to numbers.
fifa$Release_Clause2 = str_replace(fifa$`Release Clause`,"K","000")
fifa$Release_Clause2 = str_replace(fifa$`Release Clause`,"M","000000")