Learn R Programming

wikkitidy (version 0.1.14)

id_or_title: Determine if a page parameter comprises titles or pageids, and prefix accordingly.

Description

Determine if a page parameter comprises titles or pageids, and prefix accordingly.

Usage

id_or_title(page, prefix = NULL)

# S3 method for character id_or_title(page, prefix = NULL)

# S3 method for numeric id_or_title(page, prefix = NULL)

Value

A list

Arguments

page

Either a character or numeric vector. If a character vector, it is interpreted as a vector of page titles. If a numeric vector, of pageids.

prefix

Optional: A prefix to affix to the page titles if it is missing