escape: Escape/quote a string.

Description Usage Arguments

View source: R/kql-escape.R

Description

Escape/quote a string.

Usage

1
2
3
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 April 28, 2020, 1:06 a.m.