Skip to contents

This function takes a data set that is in the format required for taxsim_calculate_taxes, checks it to make sure it is in the proper format for TAXSIM 35, and then cleans so it can be sent to TAXSIM 35. This function is useful for troubleshooting. It is not needed to calculate taxes. The function is useful if you continue receiving unreasonable errors from taxsim_calculate_taxes. In such as case, you can run this function on your data set. You should then save the resulting data frame as a csv file. Then, upload the file to TAXSIM 35.





Data frame containing the information that will be used to calculate taxes. This data set will be sent to TAXSIM. Data frame must have specified column names and data types.


A data frame that that can be manually uploaded to TAXSIM 35.


create_dataset_for_taxsim takes the same columns as column names as TAXSIM 35.


family_income <- data.frame(
    taxsimid = c(1, 2),
    state = c('North Carolina', 'NY'),
    year = c(2015, 2015),
    mstat = c('single', 'married, jointly'),
    pwages = c(10000, 100000),
    page = c(26, 36)

family_taxes <- create_dataset_for_taxsim(family_income)