classification_template: Generate a Basic Classification Analysis Template

Description Usage Arguments Examples

View source: R/classification_template.R

Description

Generates a basic template for a classification using termco tools.

Usage

1
2
3
4
5
6
7
classification_template(
  path = "scripts/02_classification.R",
  file.ext = "fst",
  categories.file = "models/categories.R",
  verbose = TRUE,
  ...
)

Arguments

path

Path to classification template script.

file.ext

A supported file extension for the text data. This dictates the packages used in the template for reading in data. Currently, '.csv' (readr)and '.fst' (fst) are supported. This can be manually changed after the template is created.

categories.file

A path to the categories model (term list) file. Defaults to ‘'models/categories.R'’.

verbose

logical. If TRUE a message is printed if the template inclusion was successful.

...

ignored.

Examples

1
2
3
4
## Not run: 
classification_template()

## End(Not run)

trinker/termco documentation built on Jan. 7, 2022, 3:32 a.m.