Hi all,
I am having a bit of fun with runing statistics on my record collection using R-Studio. An issue I run into is that the factor "Format" in my data frame has to many levels. Instead of just ne level for "LP", I get dozens. That in turn is due to values, separated by comma that serve no purpuse and that I would like to delete. To illustrate with an example (se also screendump):
"LP, Album"
"LP, Album, RE"
"LP, Album + 7"
"LP, Album, Blu"
"LP, Comp"
I'd like to delete all values after the comma, just keep "LP". Any tips on how that could be done using subsetting / filtering or any other useful way in R-Studio?
Thanks!