rw_match_first: Match first sentence to paragraphs (rw_match_first)

Description Usage Arguments Value

View source: R/rw_match_first.R

Description

Input is a text file with multiple paragraphs. Output is a text file for each paragraph with the first sentence removed and with the first sentences listed in random order.

Usage

1
2
3
4
5
6
7
rw_match_first(
  infile,
  title = "title",
  part = "section",
  project = "name",
  parabreak = "\r\n"
)

Arguments

infile

A text file containing several paragraphs.

title

Title of text (e.g. paper reference).

part

Part of the text (e.g. paper section). Used in filenames.

project

Project nickname for use in filenames

parabreak

The characters that designate paragraph breaks in the input

Value

A text file of paragraphs with first sentences removed and random list of first sentences


chrismgillen/readtowrite documentation built on Aug. 18, 2020, 7:50 p.m.