realRatingMatrix-class {recommenderlab}R Documentation

Class "realRatingMatrix": Real-valued Rating Matrix

Description

A matrix containing ratings (typically 1-5 stars, etc.). Note that 0 codes for a missing rating.

Objects from the Class

Objects can be created by calls of the form new("realRatingMatrix", data = m), where m is sparse matrix of class dgCMatrix (see package~Matrix).

Slots

data:
Object of class "dgCMatrix", a sparse matrix defined in package Matrix.

Extends

Class "ratingMatrix", directly.

Methods

coerce
signature(from = "matrix", to = "realRatingMatrix")
coerce
signature(from = "realRatingMatrix", to = "matrix")
coerce
signature(from = "realRatingMatrix", to = "dgTMatrix")
coerce
signature(from = "realRatingMatrix", to = "ngCMatrix")
coerce
signature(from = "realRatingMatrix", to = "dgCMatrix")
coerce
signature(from = "data.frame", to = "realRatingMatrix")
binarize
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.

See Also

dgCMatrix in Matrix


[Package recommenderlab version 0.1-0 Index]