Skip to content

[Function] - Adding new food entries into MAPS food dictionary #5

@LuciaSegovia

Description

@LuciaSegovia

Hi @TomCodd

I would like to generate a function for adding new food entries into the dictionary. You can see an example of the potential fuction here.

The idea is that the new food entries would be nested into the sub-categories (ID_0, ID_1, ID_2), and ID_3 should be unique, but generated from ID_2.

As you can see, what I am currently doing is to provide manually the category where it should be nested (ID_2) and copying a new row, where then the ID_3 is generated as continuous numeric sequence (01-99). Then, I manually assigning a name (FoodName_3), the scientific name (scientific_name) and the FoodEx2 code (FE2_3).

In addition, the function should allow for 3 optional variables to be filled manually to be added: Description1, Desc1.ref. Description2, Desc1.ref2. See here.

Let me know if that makes any sense and if you would like some more clarification :)

THANKS!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions