drbenedictpaul/Allocate_R — reverse-engineered prompt

Reverse engineered prompt

GitHub

I want a simple R tool that assigns students to research supervisors using each student’s CGPA and their ranked supervisor preferences.

Please make it work from a basic spreadsheet or CSV input, where I can list students, their CGPA, and their preference order for supervisors. The allocation should favor higher CGPA when multiple students want the same supervisor, but still try to match as many people as possible to one of their choices. If there are limits on how many students a supervisor can take, support that too. At the end, give me a clear output table showing each student, the supervisor they got, which preference number it was, and anyone who could not be placed.

I’d also like the code to be easy to run and easy to tweak for a new batch of students without rewriting everything. Add a short explanation in comments so a non expert can follow the logic. If anything is unclear, look up current R package docs online if needed.

Want more depth? Deep Reverse