proportions_calculation: Proportions for individual proportion types

View source: R/DataReformatting.R

proportions_calculationR Documentation

Proportions for individual proportion types

Description

A function for calculating the numeric proportions of crops which are sold, consumed, or fed to livestock

Usage

proportions_calculation(data, use, use_column, prop_column, loop_number = NULL)

Arguments

data

A standard RHoMIS data set

use

The use of crops being examined This could include "eat", "sell", "feed_livestock"

use_column

The column which includes the uses for this item

prop_column

The column containing the proportions for this use

loop_number

The number of the loop which is being processed

Details

Rpackage file: DataReformatting.R


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