Function to add headings within the crunching report - Headings are by defaults the groups defined in the xlsform - but can be replaced within the analysis plan by chapter and subchapter
Arguments
- dico
path to the xlsform file used to colllect the data
- var
name of the variable to display
Examples
dico <- kobo_dico( xlsformpath = system.file("sample_xlsform.xlsx", package = "kobocruncher") )
plot_header( dico = dico,
var = "profile.profile")
#> ------
#>
#>
#>
#> ## Respondant profile
#>
# class(plot_header( dico = dico,
# var = "profile.profile"))
#
dput(plot_header( dico = dico,
var = "profile.profile"))
#> ------
#>
#>
#>
#> ## Respondant profile
#>
#> NULL
#
message(plot_header( dico = dico,
var = "profile.profile"))
#> ------
#>
#>
#>
#> ## Respondant profile
#>
#>
cat(plot_header( dico = dico,
var = "profile.profile"))
#> ------
#>
#>
#>
#> ## Respondant profile
#>
print(plot_header( dico = dico,
var = "profile.profile"),
useSource = FALSE)
#> ------
#>
#>
#>
#> ## Respondant profile
#>
#> NULL