fst_length_compare {finnsurveytext} | R Documentation |
Compare response lengths
Description
Compare length of text responses for different groups of participants. Data is split based on different values in the 'field' column of formatted data. Results will be shown within the plots pane.
Usage
fst_length_compare(
data,
field,
incl_sentences = TRUE,
exclude_nulls = FALSE,
rename_nulls = "null_data"
)
Arguments
data |
A dataframe of text in CoNLL-U format with additional 'field' column for splitting data. |
field |
Column in 'data' used for splitting groups |
incl_sentences |
Whether to include sentence data in table, default is 'TRUE'. |
exclude_nulls |
Whether to include NULLs in 'field' column, default is 'FALSE' |
rename_nulls |
What to fill NULL values with if 'exclude_nulls = FALSE'. |
Value
Dataframe summarising response lengths.
Examples
fst_length_compare(fst_child, 'gender')
fst_length_compare(fst_dev_coop, 'education_level', incl_sentences = FALSE)
[Package finnsurveytext version 2.1.1 Index]