Learn R Programming

tlsh (version 0.1.0)

shingled_record_to_index_vec: Function to convert to tell what index the shingle corresponds to in the record

Description

Function to convert to tell what index the shingle corresponds to in the record

Usage

shingled_record_to_index_vec(shingled_record, universal_set)

Arguments

shingled_record

Shingled record

universal_set

Universal set of all shingles

Value

the index regarding where the shingle falls in the record

Examples

Run this code
# NOT RUN {
shingles("Alexander",2)
shingles("Alexander Smith", 2)
shingled_record_to_index_vec(shingles("Alexander",2), unique(shingles("Alexander Smith", 2)))
# }

Run the code above in your browser using DataLab