# Within the provided sample data (data_TRY_15160) select the georeferenced traits
# records together with records for Latitude and Longitude (DataID 59 and 60) and
# exclude duplicate trait records
data_selected <- rtry_select_row(data_TRY_15160,
(TraitID > 0) | (DataID %in% c(59, 60)),
getAncillary = TRUE,
rmDuplicates = TRUE)
# Expected message:
# 45 duplicates removed.
# dim: 1737 28
Run the code above in your browser using DataLab