Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/findInClusters.R
Functions to search occurances of a genus / species / RegEx in the clusters of a BCCluster-analysis.
1 2 | findInClusters(pattern="vulgaris", BCCluster.result, verbose = TRUE)
findSpeciesInClusters(pattern="vulgaris", BCCluster.result, md, verbose = TRUE)
|
pattern |
A RegEx - pattern that is passed to grep in order to match against the clusters. See details section. |
BCCluster.result |
The result object of a |
md |
Metadata table that was used for the |
verbose |
Set to 'FALSE' to suppress printing to console. |
findInClusters
directly matches against the specimen ids in BCCluster.result$clusters
.
findSpeciesInClusters
matches the pattern against BCCluster.result$sp.in.clusters
which should equal the species column entry in the metadata. Specimen indices are searched in the respective species column entries in the metadata of the ids in BCCluster.result$clusters
. This is useful if the actual specimens are labelled by their IDs only.
Prints indices of matching clusters and the indices of matching specimens within the cluster on the console and returns a vector of cluster indices invisibly.
Jonas Eberle
1 | ### Sorry, still no examples.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.