calc_seed_prices: Calc Seed Prices

Description Usage Arguments Value Examples

View source: R/calc_seed_prices.R

Description

Calculates the seed prices for purchased seeds based upon if you have a Jojamart membership or not.

Usage

1
calc_seed_prices(all_joja_cols = TRUE, joja_member = FALSE)

Arguments

joja_member

logical specifying if you have the JojaMart membership, or can be NA if both_joja_cols = FALSE

crop_data

data.frame containing crop data, defaults to the data contained in the croptimizer package

both_joja_cols

logical specifying if you want both JojaMart price columns, one for the price with the membership and one for the price without

Value

data.frame containing crop_data with seed_price and source columns appended

Examples

1
2
3
4
5
fall_crops <-
filter_to_season(season = "fall", crop_data = croptimizer::crops)
calc_seed_prices(crop_data = fall_crops,
joja_member = FALSE,
drop_cols = TRUE)

aftonsteps/rstardew documentation built on Oct. 11, 2021, 1:35 a.m.