namespace_match_generator: namespace name/number retrieval

Description Usage Arguments Details Value See Also

Description

namespace_match_generator generates a localised list of namespace names and the equivalent IDs, and saves it to file. This is then used by namespace_match

Usage

1

Arguments

to_return

whether or not to return the dataset, as well as save it to file.

Details

namespace_match_generator queries the various Wikimedia APIs to build up a dataset of what the localised namespace names are on each project. For this reason it needs internet access - don't bother using it on stat1002, for example.

Value

Either the value TRUE, if to_return is FALSE, or a data.table containing the project dbname, language name, project type, namespace ID, and localised namespace name.

See Also

namespace_match, which uses the resulting dataset to perform namespace name/ID matching.


wikimedia-research/WMUtils documentation built on May 4, 2019, 5:23 a.m.