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

View source: R/utils.R

id_or_titleR 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


wikkitidy documentation built on April 4, 2025, 12:41 a.m.