Encode sequence vector (replace items to numbers)
str_v |
the input (Rcpp) sequence |
res |
the result (encoded) vector |
val2int |
the encoder |
SEQ_TYPE
- the type of a sequence of the input sequence (Rcpp)
ELEM_TYPE
- the type of an item of the input sequence (c++)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.