This function names a vector with the leaf code using the codeTreeMarker stored in the opts object as marker.

codePaths_to_namedVector(x)

Arguments

x

A vector of code paths.

Value

The named vector of code paths.

Examples

codePaths_to_namedVector(
  c("codes>reason>parent_feels",
    "codes>reason>child_feels")
);
#>                parent_feels                 child_feels 
#> "codes>reason>parent_feels"  "codes>reason>child_feels"