Skip to contents

Main functions

Functions to load rawdata into R and produce a csv file for the selected group (filgruppe).

read_file() les_fil() rdf()
Read Raw Data or File
make_file() lag_fil() mf()
Implement the Specifications for Raw Files
make_filegroups() lag_filgrupper()
Make Multiple Filegroups
save_file() lagre_fil()
Save Data to CSV file

Database connection

Make connection to the database. Use opt.orgdata to see orgdata config options or getOption() for a specific option. Object of R6 Class will be created.

KHelse
Connecting to Database

Geo codes

Functions to get geographical codes for aggregating and recoding. The codes are fetched from SSB via API. These functions are heavily dependent on norgeo package.

geo_map()
Granularity of Geographical Codes
geo_map_multi()
Granularity of Geographical Codes (multi-year)
geo_merge()
Merge Other Geo Level Manually
geo_recode()
Geographical Codes to Recode

Action functions

Functions for doing the instructions specified such as rename, recode etc. These have do_ prefix.

do_aggregate()
Aggregate Data
do_colname()
Rename Columns
do_column_standard()
Rename Standard Columns
do_delete_row()
Delete Selected Rows
do_extra_args()
Execute Extra Arguments
do_extra_args_group()
Execute Extra Arguments for Filegroup
do_geo_recode()
Recode Geographical Codes
do_implicit_null()
Create Implicit Null
do_make_file_each()
Process Each File
do_manheader()
Rename Colname Manually
do_mutate()
Create Column
do_recode()
Recode Variables
do_recode_aggregate()
Recode Category Representing All Groups
do_recode_post()
Post Recode Columns
do_recode_regexp()
Recode Variables with Regular Expression
do_recode_without_aggregate()
Recode Geo Code Without Aggregate
do_reshape()
Reshape from Wide to Long
do_reshape_long()
Special Need Reshape to Long
do_reshape_rename_col()
Rename Reshaped Column
do_reshape_wide()
Reshape from Long to Wide
do_source_file()
Source R or Stata files
do_split()
Split Column
do_year()
Add Year to Data

Column specific functions

Functions to get input from specific columns in the database that does not have one-to-one input output relationship, for example INNLESARG or MANHEADER. These have get_ prefix.

get_aggregate()
Get Aggregate Specification
get_codebok()
Codebook
get_codebok_aggregate()
Codebook for Aggregate Columns
get_codebok_regexp()
Codebook with Regular Expression
get_colname()
Get Renamed Columns
get_column_standard()
Get Standard Columns
get_delete_row_spec()
Get Rows for Deletion
get_extra_args()
Get Extra Arguments
get_extra_args_group()
Get Extra Arguments for Filegroup
get_geo_dummy()
Create Dummy Enumeration Area Codes
get_geo_recode()
Get Previous and Current Geo Codes
get_implicit_col()
Get Implicit Null Categories
get_implicit_per_year()
Dataset for Implicit Null by Year
get_implicit_ref()
Get Reference Values
get_innlesarg()
Get INNLESARG Specifications
get_manheader()
Get MANHEADER
get_mutate_value()
Value for New Column
get_reshape_id_val()
Reshape Id and Measure
get_reshape_wide_spec()
Reshape Wide Specification
get_split()
Get Split Column
get_year() get_aar()
Get Year of Data

Helper functions

General functions when working with orgdata. These have find_ prefix.

find_age_category()
Define age categories
find_column_input()
Columns with Single Input
find_column_multi() find_column_multi_input() find_column_multi_input_arg()
Columns with Multiple Inputs
find_data()
Find Rawdata
find_implicit_col()
Find Implicit Null Categories
find_implicit_null()
Dataset for Implicit Null
find_spec()
File Specifications in Registration Database

Internal functions

Utility functions that are not exported. These have is_ prefix.

Nice to have

Some functions that are nice to have.

see_file() se_fil()
See Column Categories
see_data()
Access Structured Data in Data Warehouse
log
Environment to store log info
orgEnv
Status workflow
read_log()
Read Log File
debug_opt()
Debugging options
update_globs() up_opt()
Update Global Options
reset_options() reset_opt()
Reset options
update_khpackage() upgrade_khpackage()
Update khpackage
website()
Show Website
emoji()
Emoji