Learn R Programming

yaml (version 2.3.10)

verbatim_logical: Alternative logical handler

Description

A yaml handler function that causes logical vectors to emit true/false instead of yes/no values.

Usage

verbatim_logical(x)

Value

Returns a vector of strings of either true or false of class verbatim.

Arguments

x

logical vector to convert to true/false.

Author

Charles Dupont and James Goldie (jimjam-slam)

Details

Pass this function to as.yaml() as part of the handler argument list like list(logical = verbatim_logical).

See Also

as.yaml

Examples

Run this code
vector <- c(TRUE, FALSE, TRUE)

as.yaml(vector, handlers=list(logical=verbatim_logical))

Run the code above in your browser using DataLab