data(MovieLense)
MovieLense
## look at the first few ratings of the first user
as(MovieLense[1,], "list")[[1]][1:10]
## visualize part of the matrix
image(MovieLense[1:100,1:100])
## number of ratings per user
hist(rowCounts(MovieLense))
## number of ratings per movie
hist(colCounts(MovieLense))
## mean rating (averaged over users)
mean(rowMeans(MovieLense))Run the code above in your browser using DataLab