EVOLUTION-MANAGER
Edit File: get_recommendations_all.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Get recommendations for unlimited vector of track IDs</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for get_recommendations_all {spotifyr}"><tr><td>get_recommendations_all {spotifyr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get recommendations for unlimited vector of track IDs</h2> <h3>Description</h3> <p>Get recommendations for a submitted vector of track IDs, with no limit on the number of seed tracks </p> <h3>Usage</h3> <pre> get_recommendations_all(track_ids, valence = NULL) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>track_ids</code></td> <td> <p>A vector containing the IDs of the tracks you'd like recommendations for</p> </td></tr> <tr valign="top"><td><code>valence</code></td> <td> <p>The target valence for the recommendations</p> </td></tr> </table> <h3>Details</h3> <p>This is a wrapper for the <code><a href="get_recommendations.html">get_recommendations</a></code> function, which provides a workaround for the limit of 5 seed tracks per recommendation call. The function splits a supplied vector of track IDs into subsets of length 5, then applies a <code><a href="get_recommendations.html">get_recommendations</a></code> call, 5 tracks at a time. This should generate a data frame of recommended tracks, with length equal to the supplied vector of track ids. </p> <h3>Value</h3> <p>Returns a data frame containing binded recommendations from the Spotify API in a single data frame. </p> <h3>See Also</h3> <p>Other personalization functions: <code><a href="get_my_top_artists_or_tracks.html">get_my_top_artists_or_tracks</a>()</code>, <code><a href="get_recommendations.html">get_recommendations</a>()</code> </p> <h3>Examples</h3> <pre> get_recommendations_all( track_ids = c("5VIpLopHgolKcSSj7JPCMA", "3QRGYDFFUVb4qneE4DX1gR") ) </pre> <hr /><div style="text-align: center;">[Package <em>spotifyr</em> version 2.2.3 <a href="00Index.html">Index</a>]</div> </body></html>