parse_annotations: Parse an hierarchical annotation into a data.frame

View source: R/parse_annotation.R

parse_annotationsR Documentation

Parse an hierarchical annotation into a data.frame

Description

Parse an hierarchical annotation into a data.frame

Usage

parse_annotations(notes, pattern = "#+")

Arguments

notes

a character vector

pattern

a length 1 character vector, with the pattern to parse the annotation. This is passed to stringr::str_split and stringr::str_extract_all. The default value matches 1 or more hashtags (#) and succesive hashtags indicate the level of the title/code

Value

a list of data.frame

See Also

parse_single_annotation


edalfon/efun documentation built on June 23, 2024, 4:17 a.m.