Description Usage Arguments Value Examples
Makes a query to the Canadian Nutrient File food endpoint. This endpoint returns data from a list of food codes and corresponding names.
1 |
apiKey |
Key to access the API. Can be retrieved from https://hc-sc.api.canada.ca/en/detail?api=cnf#!/Nutrient/get_nutrientamount. If none is provided, the system environment variables will be checked. |
foodCode |
The code indicating the food you want to search for. If null, all foods are returned. |
lang |
The language to return results in, can be either 'en' or 'fr'. |
A tibble containing food names and food ids.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.