pearson | R Documentation |
Functions that returns the pearson similarity between two items or users.
pearson(CF, type, i, j)
CF |
A CF objec |
type |
"user" or "item" |
i |
"user" or "item" Id or index |
j |
"user" or "item" Id or index#' |
Jessica Kubrusly
objectCF_r <- CFbuilder(Data = movies[1:500,], Datatype = "ratings",
similarity = "pearson")
pearson(CF=objectCF_r,type = "user",i="2",j="3")
pearson(CF=objectCF_r,type = "item",i="Her",j="Frozen")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.