Hello,
I have a dataset in the form:
df <- data.frame(name = c("Tom", "Henry", "Linda", "Olivia"),
values= c(2.732, 4.946, 1.235, 3.337))
The values range between 1 (being the highest score) and 5 (being the lowest score). I have a 2-fold task:
- I need to standardize this between 0 and 1 (cannot get the 'standardize' function to work..)
- Need to flip the highest and lowest .. ie. those scoring 1 should be 1 when standardized, and those scoring 5 should be 0. In this example, I basically want Linda to be 1 and Henry at 0, with Tom and Olivia's standardized scoring falling somewhere in the middle.
Many thanks!