Dasst-searchAncillary: Search for ancillary data within the 'Dasst' object

searchAncillaryR Documentation

Search for ancillary data within the Dasst object

Description

searchAncillary looks for ancillary data that satisfies the search criteria and gives the table orders in the Dasst object for successful results.

Arguments

x

An object of class Dasst.

fileKey

A character string. Search for this pattern within the "filename" slot.

secKey

A character string. Search for this pattern within the "section" slot.

colKey

A character string. Search for this pattern within the tables column names.

...

Other parameters than may be passed to grepl.

Details

This method searches for character strings or regular expressions in the ancillary data of the Dasst object. Patterns are sought into "fileNames" and "sections" slots, and table column names. The corresponding table orders whose ancillary data satisfied the search criteria are gathered in a vector.

Value

An integer representing the table orders whose ancillary data satisfied the search criteria.

Examples

data(plantGrowth)
searchAncillary(plantGrowth, secKey="run[[:space:]]*1")
searchAncillary(plantGrowth, secKey="run[[:space:]]*1", ignore.case=TRUE)

hlozza/Dasst documentation built on April 22, 2022, 6:41 p.m.