userContribs(user.name = NULL, domain = "en", ucprop = "ids|title|timestamp|comment|sizediff|flags")
Default: ids|title|timestamp|comment|sizediff|flags
userContribsClass
:
call
the command line
user
a vector containing the user name and the user identifier
contribs
a data frame containing the asked properties of the revisions.
If ids is asked, the corresponding results are pageid, revid, and parentid.
Three others informations are automatically added :
ns
, numbers of the namespaces (identification of the type of pages, defining nscat et nssubj, the two next variables),
nscat
, the categories of linked pages (Subject, Talk, or Virtual),
nssubj
, the subjects of the linked pages (Main Article, User, Wikipedia, File, MediaWiki, Template, Help, Category, Protal, Book, Draft, Education Program, TimedText, Module, Topic, Special, Media, Other) .
This item is provided if the user has at least one contribution.
For more details about namespace, see http://www.mediawiki.org/wiki/Help:Namespaces and http://en.wikipedia.org/wiki/Wikipedia:Namespace#Subject_namespacestestWikiUser
A list of three elements.
The first is takeOnlyFirst
, a boolean indicating if the class of user.name
parameter is invalid,
for example vector, list, matrix..., and in that case, the only the first element is considered.
The second element is test
, an integer with value:
warnMessage
, is a vector of warning messages.## Not run:
# LouiseContribs <- userContribs(user.name = "Louise", domain = "en")
# ## try a user that does not exist (at the moment of the redaction of this help page)
# userContribs(user.name="Louise Baschet", domain ="fr")
# ## End(Not run)
Run the code above in your browser using DataLab