Learn R Programming

WikidataR (version 2.3.3)

as_quot: Add quotations marks

Description

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

Usage

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

Run this code
# NOT RUN {
as_quot("text")
# }

Run the code above in your browser using DataLab