Learn R Programming

EDCimport (version 0.6.0)

edc_find_value: Search the whole database

Description

Find a keyword in columns or values, in all the datasets of the database.

Usage

edc_find_value(
  keyword,
  ignore_case = TRUE,
  data = get_datasets(),
  lookup = edc_lookup()
)

edc_find_column(keyword, ignore_case = TRUE, lookup = edc_lookup())

Value

a tibble

Arguments

keyword

The keyword to search for. Regular expressions are only supported in edc_find_column.

ignore_case

Logical. If TRUE (default), the search will ignore case differences.

data

A list of datasets.

lookup

A lookup table.

Examples

Run this code
db = edc_example()
load_database(db)

edc_find_value("respi")
edc_find_value(2010)

edc_find_column("ad")
edc_find_column("date") 
#with regex
edc_find_column("\\d")
edc_find_column("\\(") #you need to escape special characters

Run the code above in your browser using DataLab