Description Usage Arguments Value Examples
View source: R/read_HRV_report.R
Parse LabChart's HRV Report .txt files in to a tidy tibble with one row per file.
Internally, this function calls readtext::readtext()
and use regular expression to extract
information from each variables.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
file |
path to .txt files to be read. This is designed to automagically handle a number of common scenarios, so the value can be a "glob"-type wildcard value. |
ignore_missing_files |
if |
text_field, docid_field |
a variable (column) name or column number indicating where to find the texts that form the documents for the corpus and their identifiers. This must be specified for file types .csv, .json, and .xls/.xlsx files. For XML files, an XPath expression can be specified. |
docvarsfrom |
used to specify that docvars should be taken from the filenames, when the readtext inputs are filenames and the elements of the filenames are document variables, separated by a delimiter ( |
dvsep |
separator (a regular expression character string) used in filenames to delimit docvar elements if |
docvarnames |
character vector of variable names for |
encoding |
vector: either the encoding of all files, or one encoding for each files |
source |
used to specify specific formats of some input file types, such as JSON or HTML. Currently supported types are "twitter" for JSON and "nexis" for HTML |
cache |
if TRUE, save remote file to a temporary folder. Only used when file is a URL. |
format_cols |
If |
... |
passed to |
A data.frame
1 | # read_HRV_report("path/to/folder")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.