Queries the unique (short) names for each file in the repository. Several query methods are available, see Details.
ghquery(
query,
n = 6,
full.names = FALSE,
method = c("fpdist", "overlap", "tfidf"),
costs = NULL,
counts = FALSE,
useBytes = FALSE
)character vector of short names fitting best to the query
character: query string
integer: maximal number of matches to return
logical: should full names used instead of short names (default: FALSE)
character: method to be used (default: fpdist)
a numeric vector or list with names partially matching
insertions, deletions and substitutions giving
the respective costs for computing the Levenshtein distance, or
NULL (default) indicating using unit cost for all three
possible transformations.
a logical indicating whether to optionally return the
transformation counts (numbers of insertions, deletions and
substitutions) as the "counts" attribute of the return
value.
a logical. If TRUE distance computations are
done byte-by-byte rather than character-by-character.
The following query methods are available:
fpdist uses a partial backward matching distance based on utils::adist()
overlap uses the overlap distance for query and file names
if (interactive()) ghquery("bank")
Run the code above in your browser using DataLab