paraextract: paraextract

View source: R/alignmentsupportfnc.R

paraextractR Documentation

paraextract

Description

Extract a specific paragraph from a text file

Usage

paraextract(inputfile, begphrase, endphrase, outputfile)

Arguments

inputfile

a string of file path and Mplus output file name. It should be separated by / or \

begphrase

a phrase/words the wanted paragraph started with

endphrase

a phrase/words the wanted paragraph ended at

outputfile

a string of file path and output file name to store in

Details

Extract a wanted paragraph starting with the beginning phrase and ending at the ending phrase. This based on the algorithm from stackoverflow of https://stackoverflow.com/questions/28676208/how-to-extract-specific-paragraphs-from-a-text-file-in-r. But, this one was modified to write the paragraph to text file for reference.

Value

A specific paragraph from origin text file

Author(s)

Hai Nguyen hnguye72@uic.edu


hai-mn/Harmony documentation built on Feb. 7, 2023, 2:52 p.m.