ghquery | R Documentation |
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
)
query |
character: query string |
n |
integer: maximal number of matches to return |
full.names |
logical: should full names used instead of short names (default: |
method |
character: method to be used (default: |
costs |
a numeric vector or list with names partially matching
‘insertions’, ‘deletions’ and ‘substitutions’ giving
the respective costs for computing the Levenshtein distance, or
|
counts |
a logical indicating whether to optionally return the
transformation counts (numbers of insertions, deletions and
substitutions) as the |
useBytes |
a logical. If |
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
character vector of short names fitting best to the query
if (interactive()) ghquery("bank")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.