fst_summarise_compare {finnsurveytext}R Documentation

Make comparison summary

Description

Compare text responses for between 2 and 4 sets of prepared data.

Usage

fst_summarise_compare(
  data1,
  data2,
  data3 = NULL,
  data4 = NULL,
  name1 = "Group 1",
  name2 = "Group 2",
  name3 = "Group 3",
  name4 = "Group 4"
)

Arguments

data1

A dataframe of text in CoNLL-U format for the first group.

data2

A dataframe of text in CoNLL-U format for the second group.

data3

An optional dataframe of text in CoNLL-U format for the third group, default is 'NULL'.

data4

An optional dataframe of text in CoNLL-U format for the fourth group, default is 'NULL'.

name1

A string describing data1, default is '"Group 1"'.

name2

A string describing data2, default is '"Group 2"'.

name3

A string describing data3, default is '"Group 3"'.

name4

A string describing data4, default is '"Group 4"'.

Value

Summary table of responses between groups.

Examples

f <- conllu_dev_q11_1_f_nltk
m <- conllu_dev_q11_1_m_nltk
na <- conllu_dev_q11_1_na_nltk
all <- conllu_dev_q11_1_nltk
fst_summarise_compare(m, f, na, all, "Male", "Female", "Not Spec.", "All")
fst_summarise_compare(m, f, name1 = "Male", name2 = "Female")

[Package finnsurveytext version 1.0.0 Index]