search_metadata: Search Metadata

Description Usage Arguments Details Value Examples

View source: R/endpoints.R

Description

search_metadata allows users to retrieve a list of variable names based on whether or not those variables contain a given query or set of queries within a given field or set of fields

Usage

1
search_metadata(filter_list = list(), ..., operation = "eq")

Arguments

filter_list

an optional named list that can be passed to search_metadata in addition to explicitly named parameters

...

any valid field name

operation

optional parameter that allows one to specify the given the method of comparison for search, "equals" is the default

Details

List of valid field names:

Value

returns list of names of all variables that match specified parameter values

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
search_test1 <- search_metadata(wave = "Year 1")

search_test2 <- search_metadata(wave = "Year 1", respondent = "Mother")

search_test3 <- search_metadata(wave = "Year 1", name = "f%", operation = c("eq", "like"))

search_test4 <- search_metadata(name = "f1%", operation = "like")

# Note that when using operators checking for null values (or lack thereof), the operation
# parameter should not be included in the call. It should be formatted instead like so:
search_test5 <- search_metadata(qtext = "is_null")

ffmetadata documentation built on May 2, 2019, 6:52 a.m.