Description Usage Arguments Details Value
View source: R/calc_net_profit.R
Calculates the net profit for a crop by subtracting the cost of the seeds from the sale price of the crop. Does not currently account for the cost of soil modifiers such as fertilizer and speed-gro, and does not account for seeds potentially obtained for free.
1 | calc_net_profit(crop_data, sort = TRUE)
|
crop_data |
crop data to sort, must contain columns 'seed_price' and 'expected_sell_price' |
sort |
a logical indicating if you would like the results sorted by net profit |
Crop data is required to contain columns 'seed_price' and 'expected_sell_price'.
crop_data with a net profit column appended
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.