merge_tax_rates: Merge tax rates (county-product level)

Description Usage Arguments

View source: R/merge_tax_rates.R

Description

merge_tax_rates merges the applicable tax rates to a county-product level dataset, including exemptions or reduced rates.

Usage

1
2
3
4
merge_tax_rates(sales_data, county_monthly_tax_data,
  keep_taxable_only = F, remove_tax_missing = T,
  module_exemptions = NULL,
  module_exemptions_path = "/project2/igaarder/Data/modules_exemptions_long.csv")

Arguments

sales_data

The county-product level dataset, including quantities and/ or sales information (but not tax rates) (data.table)

county_monthly_tax_data

A dataset of county-by-month tax rates (data.table)

module_exemptions

A dataset of state-product-year level exemptions/ special tax rates (data.table) If left NULL (default), the program will read a dataset from the provided module_exemptions_path.

module_exemptions_path

The path to the .csv file containing a long dataset of state-product level exemptions/special tax rates. The default is "/project2/igaarder/Data/modules_exemptions_long.csv". Don't change this unless you know what you are doing (character)


johnnybonney/sales.taxes documentation built on Dec. 7, 2018, 8:01 a.m.