Package 'pages2df'

Title: Read Morning Pages Into a Data Frame
Description: Read folder of journal-entry files organised by year and month into a data frame.
Authors: Matthew Henderson [aut, cre]
Maintainer: Matthew Henderson <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2024-11-18 06:25:10 UTC
Source: https://github.com/MHenderson/pages2df

Help Index


Augment a Pages Data Frame with LaTeX-friendly Text

Description

Augment a Pages Data Frame with LaTeX-friendly Text

Usage

create_chapter_df(pages)

Arguments

pages

A data frame containing a column of 'text' and dates 'ymd'.

Value

A data frame of pages with new columns, tex and tex_w_heading containing the same data as the text column but chopped into strings of a near fixed length (without breaking words), with some special LaTeX characters escaped and, in the case of tex_w_heading with a pre-pended section heading containing date and time information.


Read Morning Pages from Disk

Description

Read Morning Pages from Disk

Usage

pages_df(pagespath)

read_pages(pagespath, years = c(2021))

Arguments

pagespath

Path to morning pages.

years

Years to filter.

Value

A data frame with columns ymd and text.


Summarise Chapters

Description

Summarise Chapters

Usage

summarise_chapter_df(pages)

create_chapters(pages)

Arguments

pages

A data frame of pages.

Value

A data frame of chapters.