Description Usage Arguments Details Value See Also Examples
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
.
1 2 3 4 5 6 7 8 9 10 11 | getList(from, ...)
## S4 method for signature 'realRatingMatrix'
getList(from, decode = TRUE, ratings = TRUE, ...)
## S4 method for signature 'binaryRatingMatrix'
getList(from, decode = TRUE, ...)
## S4 method for signature 'topNList'
getList(from, decode = TRUE, ...)
getData.frame(from, ...)
## S4 method for signature 'ratingMatrix'
getData.frame(from, decode = TRUE, ratings = TRUE, ...)
|
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). |
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.
Returns a list or a data.frame.
binaryRatingMatrix
,
realRatingMatrix
,
topNList
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.