grep_fields {GenomicDataCommons} | R Documentation

## Find matching field names

### Description

This utility function allows quick text-based search of available fields for using `grep`

### Usage

    grep_fields(entity, pattern, ..., value = TRUE)

### Arguments

`entity` | one of `.gdc_entities` against which to gather available fields for matching
`pattern` | A regular expression that will be used in a call to `grep`
`...` | passed on to grep
`value` | logical(1) whether to return values as opposed to indices (passed along to grep)

### Value

character() vector of field names matching `pattern`

### Examples

    grep_fields('files','analysis')

[Package GenomicDataCommons version 1.12.0 Index]