get_content_dic_eng: make a nice recoded dictionary of a content of an open answer

Description Usage Arguments Value See Also Examples

View source: R/get_content_dic_eng.R

Description

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

Usage

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"
)

Arguments

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

Value

writed the content dic into the specified folder

See Also

prop, add_prop

Examples

 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")

sarid-ins/saridr documentation built on Nov. 10, 2020, 9:07 p.m.