Defines a common class for rating data.
A virtual Class: No objects may be created from it.
signature(x = "ratingMatrix", i = "ANY", j = "ANY", drop = "ANY")
: subset the rating matrix (drop
is ignorred).
signature(from = "ratingMatrix", to = "list")
signature(from = "ratingMatrix", to = "data.frame")
: a data.frame with three columns. Col 1 contains user ids, col 2 contains item ids and col 3 contains ratings.
signature(x = "ratingMatrix")
: number of ratings per column.
signature(x = "ratingMatrix")
: number of ratings per row.
signature(x = "ratingMatrix")
: column-wise rating means.
signature(x = "ratingMatrix")
: row-wise rating means.
signature(x = "ratingMatrix")
: dimensions of the rating matrix.
signature(x = "ratingMatrix", value = "list")
: replace dimnames.
signature(x = "ratingMatrix")
: retrieve dimnames.
signature(x = "ratingMatrix")
: returns a list with normalization information for the matrix (NULL if data is not normalized).
signature(x = "ratingMatrix")
: returns all
ratings in x
as a numeric vector.
signature(x = "ratingMatrix")
: returns the ratings as a sparse matrix. The format is different for binary and real rating matices.
signature(x = "ratingMatrix")
: returns a sparse logical matrix with TRUE for user-item combinations which have a rating.
signature(x = "ratingMatrix")
: plot the matrix.
signature(x = "ratingMatrix")
: number of ratings in the matrix.
signature(x = "ratingMatrix")
: sample from users (rows).
signature(object = "ratingMatrix")
See implementing classes
realRatingMatrix
and
binaryRatingMatrix
.
See getList
,
getData.frame
,
similarity
,
dissimilarity
and
dissimilarity
.