Get speaker statistics

get_speaker_statistics(
  collection = NULL,
  corpus = NULL,
  target_child = NULL,
  role = NULL,
  role_exclude = NULL,
  age = NULL,
  sex = NULL,
  connection = NULL,
  db_version = "current",
  db_args = NULL
)

Arguments

collection

A character vector of one or more names of collections

corpus

A character vector of one or more names of corpora

target_child

A character vector of one or more names of children

role

A character vector of one or more roles to include

role_exclude

A character vector of one or more roles to exclude

age

A numeric vector of an single age value or a min age value and max age value (inclusive) in months. For a single age value, participants are returned for which that age is within their age range; for two ages, participants are returned for whose age overlaps with the interval between those two ages.

sex

A character vector of values "male" and/or "female"

connection

A connection to the CHILDES database

db_version

String of the name of database version to use

db_args

List with host, user, and password defined

Value

A `tbl` of Speaker statistics, filtered down by supplied arguments. If `connection` is supplied, the result remains a remote query, otherwise it is retrieved into a local tibble.

Examples

# \donttest{ get_speaker_statistics()
#> Using current database version: '2020.1'.
#> # A tibble: 132,696 x 20 #> id speaker_role language target_child_name target_child_age #> <int> <chr> <chr> <chr> <dbl> #> 1 1 Target_Child eng Nathan 78.0 #> 2 2 Investigator eng Nathan 78.0 #> 3 3 Target_Child eng Michael 79.0 #> 4 4 Investigator eng Michael 79.0 #> 5 5 Target_Child eng Erin 79.0 #> 6 6 Investigator eng Erin 79.0 #> 7 7 Target_Child eng Christopher 79.0 #> 8 8 Investigator eng Christopher 79.0 #> 9 9 Target_Child eng Margaret 80.0 #> 10 10 Mother eng Margaret 80.0 #> # … with 132,686 more rows, and 15 more variables: target_child_sex <chr>, #> # num_utterances <int>, mlu_w <dbl>, mlu_m <dbl>, mtld <dbl>, hdd <dbl>, #> # num_types <int>, num_tokens <int>, num_morphemes <int>, #> # collection_name <chr>, collection_id <int>, corpus_id <int>, #> # speaker_id <int>, target_child_id <int>, transcript_id <int>
# }