function for getting data (download + extraction)
1 2 3 4 5 6 7 8 9 | wp_get_data(
page = "R_(programming_language)",
from = "2007-12-01",
to = as.character(Sys.Date()),
lang = "en",
user_type = "all",
platform = "all",
warn = TRUE
)
|
page |
The name of the Wikipedia page as to be found in the URL to the
wikipedia article. If e.g. the URL is:
|
from |
The starting date of the timespan for which access statistics should be retrieved - note that there is no data prior to 2007-12-01. Supply some sort of timestamp e.g. of class POSIXlt, POSIXct, Date, or character. If the option is of type character it should be in the form of yyyy-mm-dd. |
to |
The last date for which access statistics should be retrieved. Supply some sort of timestamp e.g. of class POSIXlt, POSIXct, Date, or character. If the option is of type character it should be in the form of yyyy-mm-dd. |
lang |
The language shorthand identifying which Wikipedia access
statistics are to be used: e.g. |
user_type |
the type of users. One or more of "all", "user", "spider" or "bot". "all" by default. |
platform |
The platform the pageviews came from; One or more of "all", "desktop", "mobile-web" and "mobile-app". Set to "all" by default. |
warn |
Warn about not being able to retrieve data or not? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.