| import_onehot | R Documentation |
Import One-Hot Data and Create a Co-Occurrence Network Model
import_onehot(data, cols, window = 1L)
data |
A |
cols |
An |
window |
An |
A tna object for the co-occurrence model.
Other data:
import_data(),
prepare_data(),
print.tna_data(),
simulate.tna()
d <- data.frame(
window = gl(100, 5),
feature1 = rbinom(500, 1, prob = 0.33),
feature2 = rbinom(500, 1, prob = 0.25),
feature3 = rbinom(500, 1, prob = 0.50)
)
model <- import_onehot(d, feature1:feature3, window = "window")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.