View source: R/append_metadata.R
| append_metadata | R Documentation |
This function joins Movebank GPS data with Movebank reference (meta)data, on the shared columns:
gps.tag-local-identifier = ref_data.tag-id
gps.individual-local-identifier = ref_data.animal-id
gps.individual-taxon-canonical-name = ref_data.animal-taxon
append_metadata(gps, ref_data, ref_cols = NULL)
gps |
data.frame, data.table or matrix. Movebank GPS data with at least
the columns used for the join: |
ref_data |
data.frame, data.table or matrix. Movebank reference data
with at least the columns defined in |
ref_cols |
character vector. Column names of |
GPS and reference data can be downloaded from Movebank.
A data.table with the GPS data (all columns except those used in the
join) appended with the reference data (all columns defined in
ref_cols).
# Default use
append_metadata(lbbg_gps, lbbg_ref_data)
# Only include specific reference data columns
append_metadata(lbbg_gps,
lbbg_ref_data,
ref_cols = c("animal-taxon",
"tag-id",
"animal-id",
"animal-comments",
"animal-life-stage",
"animal-mass",
"animal-sex",
"deployment-comments")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.