Learn R Programming

rock (version 0.8.1)

yaml_delimiter_indices: Get indices of YAML delimiters

Description

Get indices of YAML delimiters

Usage

yaml_delimiter_indices(x)

Value

A numeric vector.

Arguments

x

The character vector.

Examples

Run this code
yaml_delimiter_indices(
  c("not here",
    "---",
    "above this one",
    "but nothing here",
    "below this one, too",
    "---")
);
### [1] 2 6

Run the code above in your browser using DataLab