Skip to contents

This function checks the occurrence data against a reference list and update it.

Usage

rfs_update_occ_data(
  species_database,
  occurrence_df,
  family_names = "auto",
  folder = "data"
)

Arguments

species_database

Species database according to rFishStatus template (see rFishStatus::data_template_ref).

occurrence_df

Occurrence dataframe obtained from rFishStatus::rfs_download_occ_data().

family_names

Family names to be used in the filtering occurrence dataframe. Default is "auto".

folder

Folder name where the data will be saved. Default is "data".

Value

Occurrence dataframe with updated species names based on the reference dataset (see columns with "ref" suffix) or FishBase catalog (see columns with "fb" suffix).

Examples

rfs_update_occ_data(species_database = rFishStatus::data_template_ref,
                    occurrence_df = occ_df)
#> Error: object 'occ_df' not found