knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

This package allows you to easily access and work with tax information from the Danish IRS for companies and foundations who pay taxes in Denmark. The raw data is available here. The data is currently available from 2012-14, but you can automatically download 2015 data when it becomes available by specifying the end argument in the access_tax_data function described below.

Note: This package is in early BETA and new changes will most likely not have backward compatibility.

Installation

You can only install the development version from github, using Hadley Wickham's devtools package:

if(!require("devtools")) install.packages("devtools")
devtools::install_github("sebastianbarfort/taxdk")

The package depends on the dkstat package currently only available from github so you need to install that as well

devtools::install_github("rOpenGov/dkstat")

Functionality

The package currently offers two functions: access_tax_data which connects to SKAT's webpage and downloads tax information for Danish Companies and price_correction which connects to Statistics Denmark's API and downloads price correction information.

The package should be almost self explanatory. Below I offer a quick example of the two functions

library("taxdk")
df = access_tax_data()
df

The price_correction function takes a data frame as input and returns the data set with price correction information appended.

df = price_correction(df)
head(df$pris.korrektion)


sebastianbarfort/taxdk documentation built on May 29, 2019, 4:57 p.m.