Skip to content

Commit

Permalink
Style code (GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackVanish committed Feb 14, 2024
1 parent ecd7556 commit 3900e2c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/get_aphiaIDs.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
##' we need to.
##'
##' @param scinames A vector (dataframe column) containing the list of scientific names from a detection extract dataframe in
##' Surimi.
##' Surimi.
##'
##' @importFrom worrms wm_name2id
##'
##' @return Returns a named list with the scientific name as the key and the aphiaID as the value.
##' @return Returns a named list with the scientific name as the key and the aphiaID as the value.
##'

# get a table of unique scientific names and aphiaIDs.
Expand All @@ -34,13 +34,13 @@ get_unique_aphiaids <- function(scinames) {

##' @title Consult a lookup table for the aphiaID.
##'
##' @description This is the helper function that we use in the sapply when mutating the WORMS_species_aphia_id into existence.
##' @description This is the helper function that we use in the sapply when mutating the WORMS_species_aphia_id into existence.
##'
##' @param sciname A Scientific name as a string.
##' @param lookup The named list containing key-value pairs of scientific names and aphiaIDs.
##' @param lookup The named list containing key-value pairs of scientific names and aphiaIDs.
##'
##' @return Returns the appropriate aphiaID corresponding to the sciname.
##'
##' @return Returns the appropriate aphiaID corresponding to the sciname.
##'

get_aphiaid_from_lookup <- function(sciname, lookup) {
# Get the aphiaID from the lookup table.
Expand Down

0 comments on commit 3900e2c

Please sign in to comment.