create_train: Create training data structure

View source: R/create_train.R

create_trainR Documentation

Create training data structure

Description

Training data use the tm data structure.

Usage

create_train(data_df, name_df = NULL)

Arguments

data_df

A data frame which is expected to have (at least) the six columns final (integer 0/1 or factror), id, title, authors and abstract (character vectors) and year (integer).

name_df

Character vector representing the "name" of data (to be used as suffix in IDs). #'

Value

A VCorpus data structure with metadata for classification, id, year and authors.

Examples

create_train(liu_4h28)
create_train(liu_4h28, 'Liu')

UBESP-DCTV/costumer documentation built on Feb. 1, 2023, 4:52 a.m.