Learn R Programming

CFilt (version 0.3.0)

kclosestitems: Recommendation Functions

Description

Functions that provide items to be recommended to system users.

Usage

kclosestitems(CF, Id_i, k = 10)

Arguments

CF

A CF objec

Id_i

the item Id

k

an integer

Author

Jessica Kubrusly

Examples

Run this code
objectCF_r <- CFbuilder(Data = movies[1:500,], Datatype = "ratings", 
similarity = "pearson")
kclosestitems(CF = objectCF_r, Id_i = "The Lego Movie")
kclosestitems(CF = objectCF_r, Id_i = "Lincoln", k=5)

Run the code above in your browser using DataLab