Description Usage Arguments Value Examples
Make a 6-letter code with first 3 letters of genus and species
1 | make_sppcode(data, sppname)
|
data |
Name of data frame that contains at least one column with Latin names |
sppname |
Quoted name of the column that contains the Latin names |
Returns a data frame with a new column named sppcode.
1 2 3 4 5 6 7 8 | example_dat <- data.frame(Latin_Name = c("Carex limosa",
"Arethusa bulbosa", "Malaxis unifolia", "Calopogon tuberosus"),
cover = c(10, 40, 10, 50), stems = c(50, 20, 10, 10))
head(example_dat)
example_dat2 <- make_sppcode(example_dat, "Latin_Name")
head(example_dat2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.