Get participants

get_participants(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 age or a min age (inclusive) and max age (exclusive) in months

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 Participant data, filtered down by supplied arguments. If `connection` is supplied, the result remains a remote query, otherwise it is retrieved into a local tibble.

Examples

get_participants()
#> Using current database version: '2018.1'.
#> # A tibble: 20,189 x 18 #> id code name role language group sex ses education custom #> <int> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> #> 1 1 KAR Karina Adult spa <NA> <NA> <NA> <NA> <NA> #> 2 2 DIA Diana Child spa <NA> <NA> <NA> <NA> <NA> #> 3 3 NAY Nayely Child spa <NA> <NA> <NA> <NA> <NA> #> 4 4 EDG Edgar Child spa <NA> <NA> <NA> <NA> <NA> #> 5 5 OSC Oscar Child spa <NA> <NA> <NA> <NA> <NA> #> 6 6 ABR Abril Child spa <NA> <NA> <NA> <NA> <NA> #> 7 7 XOC Xóchitl Child spa <NA> <NA> <NA> <NA> <NA> #> 8 8 JUA Juan_Carlos Child spa <NA> <NA> <NA> <NA> <NA> #> 9 9 DUL Dulce Child spa <NA> <NA> <NA> <NA> <NA> #> 10 10 PAO Paola Child spa <NA> <NA> <NA> <NA> <NA> #> # ... with 20,179 more rows, and 8 more variables: corpus_id <int>, #> # max_age <dbl>, min_age <dbl>, target_child_id <int>, collection_id <int>, #> # collection_name <chr>, corpus_name <chr>, target_child_name <chr>