I have data looks like the following
name life_period yrs_school yrs_school1 yrs_school2....... yrs_school1_match ...
Ana 3 12 12 11 TRUE
imagine I have 50 different columns from yrs_school1 to yrs_school50_ila. they are all named random things at the end of each column. I want to see if yrs_school == one of the other columns. the result is found in columns named like years_school1_match. yrs_school1_match is true if yrs_school==yrs_school1. there are 50 different match columns like the one seen above. I am interested in re-ordering the yrs_school1 to yrs_school50_ila columns based on the percent that they are true in their match columns, removing any na from the percent true. the school is ordered from most % true to least % true. the ones with the highest percentage will be before the ones that are not. note that name, life_period, and yrs_school remain in the front of the output data frame. is this something possible to do in tidy verse?thank u