Hi all, I have several variables in a data set that I would like to assign ranks to, from highest to lowest, by row.
Here's a snippet of the data:
tibble::tribble( ~barrierf_housing, ~barrierf_job, ~barrierf_family, ~barrierf_services, ~barrierf_education, ~barrierf_identification, 99L, 62L, 2L, 5L, 0L, 0L, 51L, 10L, NA, 100L, NA, NA, 27L, 100L, 56L, 55L, NA, 0L, 50L, 100L, 50L, 50L, 53L, 23L, 0L, 0L, 50L, 0L, 0L, 0L, 100L, 82L, 100L, 80L, 60L, 34L, 0L, 6L, 0L, 63L, 52L, 0L, 0L, 0L, 15L, 0L, 26L, 0L, 100L, 41L, 0L, 100L, NA, 100L )
Each of these rows is a participant. I'd like to be able to add a variable or variables that allows me to see how each participant ranked each choice, so I can ultimately see, (e.g., how many people ranked barrierf_job) as the highest.