Hello, I'm a student at the university, I'm trying to learn to code all by myself. I need some help for an exercice.
I want to transform all of this data frame into one unique factorial variable
for example so that you understand, the variable University 1 is equal to 1, that means the first observation studied in university 1 and i want to create a new variable with 4 levels University 1 to 4 and in order to summarize all of this data frame.
Before I try and help you out, can you clarify if this exercise is part of coursework or homework? If so we have some policies on this forum that we can give you pointers but no solutions:
In case this is not part of homework, just tell us and we can provide a solution rather than tips. We rely on your honesty to tell us what it's used for