mhahsler/recommenderlab

RECOM_RANDOM why not assign rownames?

Closed this issue · 1 comments

## create random ratings (Z-scores)
ratings <- matrix(rnorm(nrow(newdata)*ncol(newdata)),
  nrow=nrow(newdata), ncol=ncol(newdata),
  dimnames=list(NULL, model$labels))

Why NULL in dimnames, and not user ids?
as(ratings, "data.frame") fails without row names.

Thank you for the bug report. This is now fixed in the development version on GitHub.

There is no coercion from topNList to data.frame. Coerce the topNlist into a list or a matrix.