collectors | R Documentation |
Collector based cleaning
coll_clean(x, collector = NULL)
x |
(data.frame) A data.frame |
collector |
(character) Collector field to use. See Details. |
drop |
(logical) Drop bad data points or not. Either way, we parse
out bade data points as an attribute you can access. Default: |
Explanation of the functions:
coll_clean - Standardize collector names
Returns a data.frame, with attributes
# df <- data.frame( # coll = c('K.F.P. Martius', 'C. F. P. Martius', 'C. F. P. von Martius'), # species = 'Poa annua', # lat = 1:3, # lon = 4:6, # stringsAsFactors = FALSE # ) # Standardize names # NROW(df) # df <- dframe(df) %>% coll_clean() # NROW(df) # attr(df, "coll_clean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.