binaryRatingMatrix-class {recommenderlab}R Documentation

Class "binaryRatingMatrix": A Binary Rating Matrix

Description

A matrix to represent binary ratings. Here 1 codes for a possitive rating and 0 codes no positive rating (either no or a negative rating.) This coding is common for market basked data where products are either bought or not.

Objects from the Class

Objects can be created by calls of the form new("binaryRatingMatrix", data = im), where im is an itemMatrix as defined in package arules.

Slots

data:
Object of class "itemMatrix" (see package~arules)

Extends

Class "ratingMatrix", directly.

Methods

coerce
signature(from = "matrix", to = "binaryRatingMatrix")
coerce
signature(from = "itemMatrix", to = "binaryRatingMatrix"); coerces itemMatrix or transactions from arules to binaryRatingMatrix.
coerce
signature(from = "binaryRatingMatrix", to = "matrix")
coerce
signature(from = "binaryRatingMatrix", to = "dgTMatrix")
coerce
signature(from = "binaryRatingMatrix", to = "ngCMatrix")
coerce
signature(from = "binaryRatingMatrix", to = "dgCMatrix")
coerce
signature(from = "binaryRatingMatrix", to = "itemMatrix")
coerce
signature(from = "binaryRatingMatrix", to = "list")

See Also

itemMatrix.


[Package recommenderlab version 0.1-0 Index]