mirror of
https://github.com/msberends/AMR.git
synced 2026-11-29 08:46:21 +01:00
Built release reference for AMR@2.1.0
This commit is contained in:
1 parent
b7b778003c
commit
4735c250c1
62 files changed
+13199
No files matched your search
@@ -0,0 +1,48 @@
|
||||
# Italicise Taxonomic Families, Genera, Species, Subspecies
|
||||
|
||||
According to the binomial nomenclature, the lowest four taxonomic levels
|
||||
(family, genus, species, subspecies) should be printed in italics. This
|
||||
function finds taxonomic names within strings and makes them italic.
|
||||
|
||||
## Usage
|
||||
|
||||
``` r
|
||||
italicise_taxonomy(string, type = c("markdown", "ansi"))
|
||||
|
||||
italicize_taxonomy(string, type = c("markdown", "ansi"))
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
||||
- string:
|
||||
|
||||
a [character](https://rdrr.io/r/base/character.html) (vector)
|
||||
|
||||
- type:
|
||||
|
||||
type of conversion of the taxonomic names, either "markdown" or
|
||||
"ansi", see *Details*
|
||||
|
||||
## Details
|
||||
|
||||
This function finds the taxonomic names and makes them italic based on
|
||||
the
|
||||
[microorganisms](https://amr-for-r.org/release/2.1.0/reference/microorganisms.md)
|
||||
data set.
|
||||
|
||||
The taxonomic names can be italicised using markdown (the default) by
|
||||
adding `*` before and after the taxonomic names, or using ANSI colours
|
||||
by adding `\033[3m` before and `\033[23m` after the taxonomic names. If
|
||||
multiple ANSI colours are not available, no conversion will occur.
|
||||
|
||||
This function also supports abbreviation of the genus if it is followed
|
||||
by a species, such as "E. coli" and "K. pneumoniae ozaenae".
|
||||
|
||||
## Examples
|
||||
|
||||
``` r
|
||||
italicise_taxonomy("An overview of Staphylococcus aureus isolates")
|
||||
italicise_taxonomy("An overview of S. aureus isolates")
|
||||
|
||||
cat(italicise_taxonomy("An overview of S. aureus isolates", type = "ansi"))
|
||||
```
|
||||
Reference in new issue
Block a user