Description Usage Arguments Value Author(s) Examples
View source: R/anime_functions.R
Use the user item matrix to search for similar anime
1 2 3 4 5 6 | item_recommendation(
selected_item_name,
user_item_matrix,
n_recommendation,
data
)
|
selected_item_name |
selection of the user in the Shiny App |
user_item_matrix |
matrix created by the function 'user_item_matrix' |
n_recommendation |
number of recommendation wanted by the user |
data |
table of all anime |
Return a table composed of 'n_recommendation' that the user have not seen yet
Marie Bellier, Massimo Finini, Meri Likoska, Vania Rodrigues Telo Ramos, Xavier Renger
1 2 3 4 5 6 7 8 9 10 11 12 | #Simple example to showcase what is happening in the application
#User selection
selected_item_name = "Naruto"
#first create the item matrix
anime <- tibble::tibble(ProjectG5::anime)
anime_with_ratings <- tibble::tibble(ProjectG5::anime_with_ratings)
item_matrix <- user_item_matrix(anime_with_ratings, adding_row = FALSE)
#then use it to run the function
item_recommendation(selected_item_name, item_matrix, 5, anime)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.