id_or_title {wikkitidy}R Documentation

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 class 'character'
id_or_title(page, prefix = NULL)

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

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

Value

A list


[Package wikkitidy version 0.1.14 Index]