Skip to contents

Creates a table summarising distribution of the length of responses.

Usage

fst_length_summary(data, desc = "All responses", incl_sentences = TRUE)

Arguments

data

dataframe of text in CoNLL-U format, with optional additional columns.

desc

An optional string describing responses in table, default is `"All responses"`.

incl_sentences

Whether to include sentence data in table, default is `TRUE`.

Value

Table summarising distribution of lengths of responses.

Examples

fst_length_summary(fst_child, incl_sentences = FALSE)
#> # A tibble: 1 × 8
#>   Description          Respondents  Mean Minimum    Q1 Median    Q3 Maximum
#>   <chr>                      <int> <dbl>   <int> <dbl>  <int> <dbl>   <int>
#> 1 All responses- Words         413  5.33       1     2      4     7      37
fst_length_summary(fst_dev_coop, desc = "Q11_3")
#> # A tibble: 2 × 8
#>   Description      Respondents  Mean Minimum    Q1 Median    Q3 Maximum
#>   <chr>                  <int> <dbl>   <int> <dbl>  <dbl> <dbl>   <int>
#> 1 Q11_3- Words             920  5.52       1     4      5     6      32
#> 2 Q11_3- Sentences         920  1.01       1     1      1     1       3