View source: R/helper_functions.R
| compare_channels | R Documentation |
Compares statistics and performance metrics across multiple YouTube channels.
compare_channels(
channel_ids,
metrics = c("subscriber_count", "video_count", "view_count"),
auth = "key",
simplify = TRUE,
...
)
channel_ids |
Vector of channel IDs to compare |
metrics |
Metrics to include in comparison |
auth |
Authentication method: "token" (OAuth2) or "key" (API key) |
simplify |
Whether to return a simplified comparison table |
... |
Additional arguments passed to API functions |
List or data frame with channel comparison
## Not run:
# Compare two channels
channels <- c("UCuAXFkgsw1L7xaCfnd5JJOw", "UCsXVk37bltHxD1rDPwtNM8Q")
comparison <- compare_channels(channels)
# Custom metrics comparison
comparison <- compare_channels(channels,
metrics = c("subscriber_count", "video_count", "view_count"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.