Skip to contents

Crunch all likert variables according to the analysis plan

Usage

kobo_likert(datalist = datalist, datasource = NULL, dico = dico)

Arguments

datalist

An object of the "datalist" class as defined in kobocruncher

datasource

name of the data source to display, if set to NULL - then pulls the form_title within the settings of the xlsform

dico

path to the xlsform file used to colllect the data

Examples

dicolikert <- kobo_dico( xlsformpath = system.file("form_likert.xlsx", package = "kobocruncher") )
datalistlikert <- kobo_data(datapath = system.file("data_likert.xlsx", package = "kobocruncher") )
#> Warning: Unknown or uninitialised column: `_index`.

kobo_likert(datalist = datalistlikert,
              dico = dicolikert,
              datasource = "a great survey!")
#> 3 groups of likert questions in the form`plot_likert(datalist, dico, scopei="group_ei8jz33", list_namei="yk0td68", repeatvari="main",datasource=params$datasource)` 
#> 
#>  
#> Warning: `funs()` was deprecated in dplyr 0.8.0.
#>  Please use a list of either functions or lambdas:
#> 
#> # Simple named list: list(mean = mean, median = median)
#> 
#> # Auto named with `tibble::lst()`: tibble::lst(mean, median)
#> 
#> # Using lambdas list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))
#>  The deprecated feature was likely used in the kobocruncher package.
#>   Please report the issue at
#>   <https://github.com/Edouard-Legoupil/kobocruncher/issues>.

#> `plot_likert(datalist, dico, scopei="group_pm0cj55", list_namei="yk0td68", repeatvari="main",datasource=params$datasource)` 
#> 
#>  

#> `plot_likert(datalist, dico, scopei="group_wc0ig44", list_namei="yk0td68", repeatvari="main",datasource=params$datasource)` 
#> 
#>