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 (inclusive) and max age value (exclusive) 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: '2018.1'.
#> # A tibble: 106,783 x 20 #> id speaker_role target_child_na… target_child_age target_child_sex #> <int> <chr> <chr> <dbl> <chr> #> 1 1 Adult NA NA NA #> 2 2 Adult NA NA NA #> 3 3 Child NA NA NA #> 4 4 Child NA NA NA #> 5 5 Adult NA NA NA #> 6 6 Child NA NA NA #> 7 7 Adult NA NA NA #> 8 8 Adult NA NA NA #> 9 9 Adult NA NA NA #> 10 10 Adult NA NA NA #> # … with 106,773 more rows, and 15 more variables: num_utterances <int>, #> # mlu_w <dbl>, num_types <int>, num_tokens <int>, speaker_id <int>, #> # target_child_id <int>, transcript_id <int>, corpus_id <int>, #> # collection_id <int>, collection_name <chr>, language <chr>, hdd <dbl>, #> # mtld <dbl>, mlu_m <dbl>, num_morphemes <int>
# }