Learn R Programming

tlsh (version 0.1.0)

shingles: Function to shingle (token or gram) a string into its k components

Description

Function to shingle (token or gram) a string into its k components

Usage

shingles(record, k)

Arguments

record

String or record

k

Parameter k, which is the number of shingle, tokens, or grams to break the string into

Value

Computes the shingled (tokened or grammed) version of a string

Examples

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

Run the code above in your browser using DataLab