get_species_names: Get species names from column names

View source: R/get_species_names.R

get_species_namesR Documentation

Get species names from column names

Description

Gets species names from column names. This function is just an utility to easily retrieve taxon names.

Usage

get_species_names(data)

Arguments

data

a data.frame. One obtained by ⁠read_*_data()⁠ functions.

Value

A data.frame.

Examples

## Not run: 
# Folder in which the database is stored ----
path_to_db <- "data"

# Download and read the plankton nets data ----
plankton_nets_data <- read_plankton_nets_data(path_to_db)

# Select a taxonomy ----
plankton_nets_data <- select_taxonomy(plankton_nets_data, taxonomy = "OT")

# Retrieve taxon names ----
get_species_names(nets)

## End(Not run)

FRBCesab/forcis documentation built on Oct. 25, 2024, 9:26 a.m.