escape: Escape/quote a string.

View source: R/kql-escape.R

escapeR Documentation

Escape/quote a string.

Description

Escape/quote a string.

Usage

escape(x, parens = NA, collapse = " ")

kql_vector(x, parens = NA, collapse = " ")

Arguments

x

An object to escape. Existing kql vectors will be left as is, character vectors are escaped with single quotes, numeric vectors have trailing .0 added if they're whole numbers, identifiers are escaped with double quotes.

parens, collapse

Controls behaviour when multiple values are supplied. parens should be a logical flag, or if NA, will wrap in parens if length > 1.

Default behaviour: lists are always wrapped in parens and separated by commas, identifiers are separated by commas and never wrapped, atomic vectors are separated by spaces and wrapped in parens if needed.


AzureKusto documentation built on Oct. 12, 2023, 5:11 p.m.