getList

0th

Percentile

List and Data.frame Representation for Recommender Matrix Objects

Create a list or data.frame representation for various objects used in recommenderlab. These functions are used in addition to available coercion to allow for parameters like decode.

Usage
getList(from, ...) "getList"(from, decode = TRUE, ratings = TRUE, ...) "getList"(from, decode = TRUE, ...) "getList"(from, decode = TRUE, ...)
getData.frame(from, ...) "getData.frame"(from, decode = TRUE, ratings = TRUE, ...)
Arguments
from
object to be represented as a list.
decode
use item names or item IDs (column numbers) for items?
ratings
include ratings in the list or data.frame?
...
further arguments (currently unused).
Details

Lists have one vector with items (and ratings) per user. The data.frame has one row per rating with the user in the first column, the item as the second and the rating as the third.

Value

Returns a list or a data.frame.

See Also

binaryRatingMatrix, realRatingMatrix, topNList.

Aliases
  • getList
  • getList,binaryRatingMatrix-method
  • getList,realRatingMatrix-method
  • getList,topNList-method
  • getData.frame
  • getData.frame,ratingMatrix-method
Examples
data(Jester5k)

getList(Jester5k[1,])
getData.frame(Jester5k[1,])
Documentation reproduced from package recommenderlab, version 0.2-1, License: GPL-2

Community examples

Looks like there are no examples yet.