I have a column of values in an R dataframe that contains an code for a qualification in the format Faculty-Program-Campus-YearLevel. Example below:
Qualification_Code
200-N137-P-2
200-N136-P-3
200-N136-P-2
200-N135-V-1
300-G112-M-2
What I want is to split Qualification_Code into separate Faculty/Program/Campus/Level columns using R, i.e. ideally I'd like the following result:
Faculty Program Campus YearLevel
200 N137 P 2
200 N136 P 3
200 N136 P 2
200 N135 V 1
300 G112 M 2
Is there some built-in function or a package that allows this functionality? I've attempted this using RSQLite but my SQL skills are fairly underdeveloped (I'm a data science freshman with very little coding experiencing). Thanks for the help.