realRatingMatrix-class {recommenderlab} | R Documentation |
A matrix containing ratings (typically 1-5 stars, etc.). Note that 0 codes for a missing rating.
Objects can be created by calls of the form new("realRatingMatrix", data = m)
, where m
is sparse matrix of class dgCMatrix
(see package~Matrix).
data
:"dgCMatrix"
, a sparse matrix
defined in package Matrix.
Class "ratingMatrix"
, directly.
signature(from = "matrix", to = "realRatingMatrix")
signature(from = "realRatingMatrix", to = "matrix")
signature(from = "realRatingMatrix", to = "dgTMatrix")
signature(from = "realRatingMatrix", to = "ngCMatrix")
signature(from = "realRatingMatrix", to = "dgCMatrix")
signature(from = "data.frame", to = "realRatingMatrix")
signature(x = "realRatingMatrix")
: create a
"binaryRatingMatrix"
by setting all ratings larger or equal to
the argument threshold
(default: 3) as 1 and all others to 0.
dgCMatrix
in Matrix