Hi I am a very new Rstudio user, trying to use R to complete an assignment per the instructions of my class but we were given virtually no class support and my teacher is non-responsive. We were given this code, however, when I run the summary, I do not receive the same data that the instructor does ( a second column of data that says A:14 above B:46). I have attached a photo of what I get. It seems like I have to define what to do with the data but I don't know how. Any help would be much appreciated. Thank you!
prefsAB = read.csv("prefsAB.csv")
prefsAB$Subject = factor(prefsAB$Subject) # convert to nominal factor