video_time_period | R Documentation |
Returns video views by day or month.
video_time_period(
videoId = NULL,
period = "day",
endDate = as.character(format(Sys.Date(), "%Y-%m-01")),
...
)
videoId |
Required. String. Id of YouTube video. |
period |
Required. Time period to breakdown data by. Supported values are
|
endDate |
Required. String. Data returned up until the last day specified,
so for monthly period the end date must end with a day of |
... |
Addt. arguments passed to |
data.frame
## Not run:
video_time_period(videoId = "dQw4w9WgXcQ", period = "month")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.