I have a set of user recommendations
review=matrix(c(5:1,10,2,1,1,2), nrow=5, ncol=2, dimnames=list(NULL,c("Star","Votes")))
and wanted to use summary(review)to show the basic properties: average, median, quartiles and min. Max.
But it returns a summary of both columns. I will refrain from using data.frameit because the Star factors are streamlined.
How can I tell R that Star is an ordered list of factors , and their frequency is their voice?
source
share