makeGenSpp | R Documentation |
Creates genus/species column, accounting for empty species labels (adds "spp.")
makeGenSpp(d, genCol, sppCol, newCol = genSpp)
d |
Data frame or tibble |
genCol |
Genus column |
sppCol |
Species column |
newCol |
New column name (default = genSpp) |
Data frame with new genSpp column
dat <- data.frame(gen=c('Apis','Bombus','Nomada'),spp=c('mellifera','nevadensis',NA))
makeGenSpp(dat,gen,spp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.