So I have a character variable called "Mark" with 3 levels "A", "B", "C" I want to convert it to numerical value for use in linear regression.
When I use as.numeric(Mark), it recodes in increasing alphabetical order A=1, B=2, C=3
But what I want is recode in decreasing alphabet order, like A=3, B=2, C=1
I tried descreasing=TRUE/FALSE, ordered=TRUE/FALSE as options in as.numeric() but it doesn't seem to be working. Is there any easy way of doing this? Thanks for any help