calc_net_profit: Calculate Net Profit

Description Usage Arguments Details Value

View source: R/calc_net_profit.R

Description

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.

Usage

1
calc_net_profit(crop_data, sort = TRUE)

Arguments

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

Details

Crop data is required to contain columns 'seed_price' and 'expected_sell_price'.

Value

crop_data with a net profit column appended


aftonsteps/croptimizer documentation built on Jan. 28, 2021, 12:50 p.m.