Get types

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

Arguments

collection

A character vector of one or more names of collections

language

A character vector of one or more languages

corpus

A character vector of one or more names of corpora

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"

target_child

A character vector of one or more names of children

type

A character vector of one or more type patterns (` number of wildcard characters, `_` matches exactly one wildcard character)

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 Type 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_types()
#> Using current database version: '2018.1'.
#> Getting data from 4853 children in 287 corpora...
#> # A tibble: 15,374,221 x 14 #> id gloss count speaker_role target_child_name target_child_age #> <int> <chr> <int> <chr> <chr> <dbl> #> 1 1 había 1 Adult <NA> NA #> 2 2 una 2 Adult <NA> NA #> 3 3 vez 1 Adult <NA> NA #> 4 4 niña 1 Adult <NA> NA #> 5 5 que 1 Adult <NA> NA #> 6 6 le 1 Adult <NA> NA #> 7 7 tenía 1 Adult <NA> NA #> 8 8 mucho 1 Adult <NA> NA #> 9 9 miedo 1 Adult <NA> NA #> 10 10 a 1 Adult <NA> NA #> # ... with 15,374,211 more rows, and 8 more variables: target_child_sex <chr>, #> # corpus_id <int>, speaker_id <int>, target_child_id <int>, #> # transcript_id <int>, collection_id <int>, collection_name <chr>, #> # language <chr>