value_or_calorie_calculations_item_consumed: Value or Calorie Calculations item Consumed

View source: R/ValueCalculations.R View source: R/NTFP.R

value_or_calorie_calculations_item_consumedR Documentation

Value or Calorie Calculations item Consumed

Description

Calculate the value of an item in terms of calories or monetary value.

Usage

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
)

Arguments

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)

Details

Rpackage file: ValueCalculations.R


l-gorman/rhomis-R-package documentation built on Nov. 8, 2023, 6:46 a.m.