as_quot: Add quotations marks

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Add escaped quotation marks around strings that need them ready for submision to an API

Usage

1
as_quot(x, format = "tibble")

Arguments

x

a vector, data frame, or tibble of strings

format

either "tibble" / "csv" to use plain quotation marks (default), or "api" / "website" to use '%22'

Value

tibble of items inside of escaped quotation marks unless they are already in escaped quotation marks, is a QID, (in which chase it is returned unchanged)

Examples

1
as_quot("text")

WikidataR documentation built on Nov. 16, 2021, 5:07 p.m.