Description Usage Arguments Details Value Examples
This function returns a DataFrame with k`` top ngrams.
ngrams“ is a combination of n words occuring together with
highest frequency in the text. The function will return multiple
values in cases of frequency conflict.
1 2 3 |
txt |
string |
k |
top ngrams |
n |
n combination of words |
stop_remove |
Boolean |
remove_punctuation |
Boolean |
remove_number |
Boolean |
case_sensitive |
Boolean |
Created on 09 February, 2019
Authors: Harjyot Kaur, Alexander Pak
Takes in a string and returns a data.frame Number of rows are dependent on the input n of the user Size of the list is dependent on the input k of the user
data.frame
1 2 3 | txt <- "Today is a sunny day. We should go to a beach on this sunny day"
grams<- text_grams(txt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.