powered by
Function to shingle (token or gram) a string into its k components
shingles(record, k)
String or record
Parameter k, which is the number of shingle, tokens, or grams to break the string into
Computes the shingled (tokened or grammed) version of a string
# NOT RUN { shingles("Alexander",2) shingles("Alexander Smith", 2) # }
Run the code above in your browser using DataLab