Skip to content

📦 R package for aggregating original data mostly on enumeration areas level of granularity

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

helseprofil/orgdata

Repository files navigation

orgdata

R-CMD-check Codecov test coverage GitHub R package version (branch) GitHub R package version (branch)

Cleaning, restructuring and aggregating ORiGinal DATA into a preferred dataset.

Installation

The easiest way to install orgdata is to use the procedure decribed in the manual.

Update to new version or install the development version via orgdata.

orgdata::update_khpackage("orgdata")

# install development versjon
orgdata::update_khpackage("orgdata", branch = "dev")

Usage

To implement the specifications per file group as being registered in the database can be done using make_file() function.

library(orgdata)
# All files under BEFOLKNING group
dt <- make_file("BEFOLKNING")

# Select files with KOBLID
dt <- make_file("BEFOLKNING", koblid = 48)
dt <- make_file("BEFOLKNING", koblid = c(48, 72))

# Select files without KOBLID
dt <- make_file("BEFOLKNING", select = 1) #select the first valid file
dt <- make_file("BEFOLKNING", select = "last") #select the most recent file

Use function make_filegroups() to process multiple file groups at once.

make_filegroups(BEFOLKNING, LESEFERD, NEET)

Resources

About

📦 R package for aggregating original data mostly on enumeration areas level of granularity

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published