For R, I have a string that contains information about 3 grades. They look like
"First Grade|Third Grade|Second Grade|Third Grade|First Grade"
I would like to convert this into a vector, which I am hoping to equivalent to the output of:
c("First Grade","Third Grade","Second Grade","Third Grade","First Grade")
> [1] "First Grade" "Third Grade" "Second Grade" "Third Grade" "First Grade"
Is there a way to do this in R? Thanks.