titleUnflattener: given a df with two columns, stuff and section headers, it...

titleUnflattenerR Documentation

given a df with two columns, stuff and section headers, it outputs the stuff where with section headers are "titles"

Description

basically this is the opposite of titleFlattener

Usage

titleUnflattener(textdf, spaceAbove = TRUE)

Arguments

textdf

the df with the text and the section headers

spaceAbove

should there be a line before the sections, Default: TRUE

Details

DETAILS

Value

OUTPUT_DESCRIPTION

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 text <- c("## First","one","however","two","","## Second","otheer"," - Happy","Thoughts")
 titleUnflattener(titleFlattener(text, "##"))
 }

## End(Not run)

DataStrategist/amitFuncs documentation built on June 4, 2022, 10:01 a.m.