inbo / camtrapdp

R package to read and manipulate Camera Trap Data Packages (Camtrap DP)
https://inbo.github.io/camtrapdp/
Other
5 stars 0 forks source link

Group update metadata functions #103

Closed peterdesmet closed 1 month ago

peterdesmet commented 2 months ago

Create helper function update_spatial()

Create helper function update_temporal()

Create helper function update_taxonomic()

Rename helper function build_taxonomy()

It currently sounds like this function is creating the metadata, while it is deriving a df from `taxonomic.

All this can be implemented in #100. I will merge #89 into #100 first.

sannegovaert commented 1 month ago

when taxonomic is NULL create one (just the scientificNames) Which format should this be?

A list of lists?

[[1]]
[[1]]$scientificName
[1] "Anas platyrhynchos"

[[2]]
[[2]]$scientificName
[1] "Anas strepera"

A character vector? Or something else? [1] "Anas platyrhynchos" "Anas strepera"

peterdesmet commented 1 month ago

A list of lists, so that the json looks like this:

"taxonomic": [
    {
      "scientificName": "Anas platyrhynchos"
    },
    {
      "scientificName": "Anas strepera"
    }
]