create_train | R Documentation |
Training data use the tm data structure.
create_train(data_df, name_df = NULL)
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). #' |
A VCorpus
data structure with metadata for
classification, id, year and authors.
create_train(liu_4h28) create_train(liu_4h28, 'Liu')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.