View source: R/DataReformatting.R
proportions_calculation | R Documentation |
A function for calculating the numeric proportions of crops which are sold, consumed, or fed to livestock
proportions_calculation(data, use, use_column, prop_column, loop_number = NULL)
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 |
Rpackage file: DataReformatting.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.