preprocessing: Preprocessing to speed up computations

Description Usage Arguments Value Examples

View source: R/preprocessing.R

Description

For a given email length, and set of words, this function generates all possible emails, and the means to be used by ACRA.

Usage

1
preprocessing(n, fit, words = c("viagra", "rajoy", "icmat", "hi", "bye"))

Arguments

n

length of email.

fit

object of class NB with the results of training.

words

set of all words of the email.

Value

This function creates a dataframe including all possible emails together with their means.

Examples

1
preprocessing(n, words, fit)

roinaveiro/acAra documentation built on May 27, 2019, 1:47 p.m.