You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users find it difficult to understand aphia ids but these are the only mandatory species information available in the RDBES. Can we append useful species information such as scientific name/common name to our RDBES data.
The text was updated successfully, but these errors were encountered:
Example of adding scientific name to SA using the ICES Worms code list:
# Load some RDBES data
myObject <- createRDBESDataObject(input = "./tests/testthat/h1_v_1_19_18")
# Append ICES specWorms code list to SA data
# (the "Description" column contains the scientific name)
saWithSpecWorms <- dplyr::left_join(myObject[["SA"]],
RDBEScore::icesSpecWoRMS,
by=c("SAspeCode"="Key"))
Example of adding scientific name to SA using the Aphia records from WoRMS:
# Load some RDBES data
myObject <- createRDBESDataObject(input = "./tests/testthat/h1_v_1_19_18")
aphiaRecords <- RDBEScore::wormsAphiaRecord
# Change the AphiaID to a char (so it is easier to join to the RDBES speCode field)
aphiaRecords$AphiaID <- as.character(aphiaRecords$AphiaID)
# Append ahpia records to SA data
# (the "scientificname" column contains the scientific name)
saWithAphiaID <- dplyr::left_join(myObject[["SA"]],
aphiaRecords,
by=c("SAspeCode"="AphiaID"))
Users find it difficult to understand aphia ids but these are the only mandatory species information available in the RDBES. Can we append useful species information such as scientific name/common name to our RDBES data.
The text was updated successfully, but these errors were encountered: