Open KevCaz opened 5 years ago
From KevCaz: When I retrieve the data base, all entries but a few have 12 columns, the few other have 11. Is that normal?
R> names(responseNA[[1]]) [1] "_links" "_id" "species" "order" "superfamily" "family" "subfamily" "tribe" "genus"
[10] "subgenus" "__v" "_createdAt" R> names(responseNA[[19699]]) [1] "_links" "_id" "genus" "species" "order" "superfamily" "family" "tribe" "subgenu s" [10] "__v" "_createdAt"
R> table(val) val 11 12 344 19387
Regarding the to_dataframe() function, I think what we should do is: ensure all columns exist, sort all elements of the list and then use a do.call(rbind, list), that will be the output and if the user wants to remove metadata, it's up to him! Also, I think this function should also be part of auxiliar.R.
And I will remove the _links column and create a function that parse it. I cannot see how users can use it, but it may be useful for the development of the package.
My understanding is that it contains a part of URL that could be useful at some point. In the example below, to me, the only piece of information that we may re-use is
5b04107a2265c5000fab1b7a
, am I right?