Posts by Daniel Max • 11 points
1 post
-
1
votes0
answers83
viewsQ: How to invert the values of a column in a Dataframe in R?
For example, the column in my Data Frame has values from 1 to 7; I want to replace 1 by 7, 2 by 6, 3 by 5, and so on. How to do this in R? variable = 1,2,2,4,3,6,7 desired result = 7,6,6,4,5,2,1…
rasked Daniel Max 11