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 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 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

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