Add escaped quotation marks around strings that need them ready for
submission 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
A 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
as_quot("text")
#> # A tibble: 1 × 1
#> x
#> <chr>
#> 1 "\"text\""