View source: R/ValueCalculations.R View source: R/NTFP.R
value_or_calorie_calculations_item_consumed | R Documentation |
Calculate the value of an item in terms of calories or monetary value.
value_or_calorie_calculations_item_consumed(
data,
name_column,
amount_consumed_column,
conversion_tibble,
price_column_name,
converted_column_name
)
value_or_calorie_calculations_item_consumed(
data,
name_column,
amount_consumed_column,
conversion_tibble,
price_column_name,
converted_column_name
)
data |
The whole processed rhomis dataset |
name_column |
The loop column containing the name pattern (e.g "crop_name_1", "crop_name_2", "crop_name_3" would be "crop_name") |
amount_consumed_column |
The loop column containing the consumed amount pattern (e.g. "crop_consumed_kg_per_year_1"... would be "crop_consumed_kg_per_year".) |
conversion_tibble |
The dataframe for the conversion (e.g. price or calorie conversion sheet) |
price_column_name |
The name you would like to include when adding the mean prices to the dataframe (e.g. mean_crop_price_per_kg) |
converted_column_name |
The name of the converted column you would like to give (e.g.value_crop_consumed_lcu) |
Rpackage file: ValueCalculations.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.