Get the utterances surrounding a token(s)
get_contexts(
collection = NULL,
language = NULL,
corpus = NULL,
role = NULL,
role_exclude = NULL,
age = NULL,
sex = NULL,
target_child = NULL,
token,
window = c(0, 0),
remove_duplicates = TRUE,
connection = NULL,
db_version = "current",
db_args = NULL
)
A character vector of one or more names of collections
A character vector of one or more languages
A character vector of one or more names of corpora
A character vector of one or more roles to include
A character vector of one or more roles to exclude
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.
A character vector of values "male" and/or "female"
A character vector of one or more names of children
A character vector of one or more token patterns (`%` matches any number of wildcard characters, `_` matches exactly one wildcard character)
A length 2 numeric vector of how many utterances before and after each utterance containing the target token to retrieve
A boolean indicating whether to remove duplicate utterances from the results
A connection to the CHILDES database
String of the name of database version to use
List with host, user, and password defined
A 'tbl' of Utterance data, filtered down by supplied arguments.
# NOT RUN {
get_contexts(target_child = "Shem", token = "dog")
# }
Run the code above in your browser using DataLab