Description Usage Arguments Value
This is the wrapper function to the Listen Local Demo recommendation system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | get_local_recommendations(
playlist_id = "6KHw5aZWWsmRqpT7o290Mo",
target_nationality = "sk",
target_release = "sk",
recommendation_type = "artists",
limit = 20,
n_rec = 4,
silent = TRUE,
authorization = NULL,
listen_local_artist_data = "not_included/listen_local_artists.rds",
artist_distance_data = "not_included/artist_distances.rds",
local_genre_table_path = "not_included/local_genre_table.rds",
artist_genre_table_path = "not_included/artist_genre_table.rds"
)
|
playlist_id |
A Spotify playlist id. This playlist serves as the basis of the recommendation. |
target_nationality |
Defaults to |
target_release |
Defaults to |
recommendation_type |
Defaults to |
limit |
Number of playlist items used for recommendation seed. |
n_rec |
Number of required recommendations. (Maximum value, may not be fulfilled.) |
silent |
Defaults to |
authorization |
Defaults to |
listen_local_artist_data |
If |
artist_distance_data |
If |
local_genre_table_path |
If |
artist_genre_table_path |
If |
A tibble of recommendations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.