simulate.split {FeatureHashing} | R Documentation |
Simulate how split
work in hashed.model.matrix
to split the string into
tokens
Description
Simulate how split
work in hashed.model.matrix
to split the string into
tokens
Usage
simulate.split(x, delim = ",", type = c("existence", "count"))
Arguments
x |
character vector or factor. The source of concatenated feature. |
delim |
character value. The string to use for splitting. |
type |
character value. Either " |
Value
integer vector for type = "count"
and logical vector for type = "existence"
.
[Package FeatureHashing version 0.9.2 Index]