Learn R Programming

james.analysis (version 1.0.1)

getSearches: Get names of applied searches

Description

Extracts the names of all searches that have been applied to the given problem.This is a generic S3 method.

Usage

getSearches(data, problem, filter, ...)

Arguments

data
data object containing the analysis results
problem
name of the analyzed problem. Can be omitted if the data contains results for a single problem only.
filter
regular expression (optional). Only search names that match the given regex are returned, if any.
...
any additional arguments are passed to grep.

Value

Sorted vector of strings containing the names of all searches that have been applied to the given problem and match the applied filter (if any).

Details

Search names are sorted using naturalsort. If the data contains results for a single problem only, the argument problem can be omitted. If a filter is set, only those search names matching the given regular expression are returned (pattern matching is done with grep).