Description Usage Arguments Value See Also Examples
View source: R/get_content_dic_eng.R
unsed when open comments field is recived, a field that reuire human recassification. the function genterates a nicly formated table, and also does a simple classifiction based on the mose common cathegories. this function is dedicated to the english language
1 2 3 4 5 6 7 8 | get_content_dic_eng(
x,
variable_name,
idvar = `Response ID`,
...,
folder_name = "data",
name = "value_dic.csv"
)
|
x |
a tbl() that contains the relevant field |
variable_name |
the name of the relevant field |
idvar |
the response id variable |
... |
additional variables to insert into the dictionary. |
folder_name |
a string indicating in which directory the file will be saved, defoult is "data" |
name |
a string indicating the file name. note: end with .csv |
writed the content dic into the specified folder
prop, add_prop
1 2 3 4 5 6 7 8 9 10 11 12 13 | open_comments <- tribble(~id, ~open, ~yr,
1, "appel", 2017,
2, "appel souce", 2017,
3, "pasta", 2018,
4, "pasti", 2019,
5, "pasta", 2019,
6, "mango fruit", 2017,
7, "kewee fruit", 2017,
8, "forbbiden fruit", 2018)
# disregard the yr variable
open_comments %>%
get_content_dic_eng(open, idvar = id, yr,folder_name="data",name="value_dic.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.