RD1-class {eoR}R Documentation

RD1 class for 'GENESIS-Tabelle: 12613-02-02-4'

Description

The class RD1 stores GENESIS table information in a systematic way.

The header-method gets the raw header information of an RD1 object

The footer-method gets the raw footer information of an RD1 object

The rd1-method gets the death count table information of an RD1 object

The rd1total-method gets the death count total sums table information of an RD1 object

The content-method gets the death count table information of an RD1 object

The region-method gets the regional information of an RD1 object

The protocol-method gets the protocol information of an RD1 object

The RegDeath1-constructor creates an RD1 object

The length-method gets the number of rows int the RD1 rd1 data.table

The selectYears-method gets a subset of an RD1 object

The selectRegion-method gets a subset of an RD1 object

The readRegDeath-method reads all information from 'GENESIS-Tabelle: 12613-02-02-4'

Usage

## S4 method for signature 'RD1'
header(object)

## S4 method for signature 'RD1'
footer(object)

## S4 method for signature 'RD1'
rd1(object)

## S4 method for signature 'RD1'
rd1total(object)

## S4 method for signature 'RD1'
content(object)

## S4 method for signature 'RD1'
region(object)

## S4 method for signature 'RD1'
protocol(object)

RegDeath1(header, footer, rd1, rd1total, content, region, protocol)

## S4 method for signature 'RD1'
length(x)

## S4 method for signature 'RD1'
show(object)

## S4 method for signature 'RD1'
selectYears(object, selectYears)

## S4 method for signature 'RD1'
selectRegion(object, selectRegion)

readRegDeath(infile)

Arguments

object

RD1-object

header

vector

footer

vector

rd1

data.table

rd1total

data.table

content

character

region

character

protocol

character

x

RD1-object

selectYears

vector

selectRegion

vector

infile

character file name

Details

This RD1 class fits to the GENESIS table 12613-02-02-4. See https://www.regionalstatistik.de/genesis/online for data details. An RD1 instance stores the raw header, the raw footer, the content, the version protocol and regional information and the death count information as a data.table object. Further it stores a second data.table with the total sums information. Try demo(RD1) for a demonstration.

Value

The header-method returns the raw header information

The footer-method returns the raw footer information

The rd1-method returns the death count table

The rd1total-method returns the death count total sums table

The content-method returns the content information

The region-method returns the regional information

The protocol-method returns the protocol information

The RegDeath1-constructor returns an RD1 object

The length-method returns the number of rows

The selectYears-method returns an RD1 object

The selectRegion-method returns an RD1 object

The readRegDeath-method returns an RD1 object

Slots

content

describes the content

region

regional entity

header

includes the raw header information

footer

includes the raw footer information

rd1

stores the death count table (data.table)

rd1total

stores the death count total sums table (data.table)

protocol

contains the protocol information

Examples

d1 <- readRegDeath(file.path(system.file(package="eoR"), "extdata", "12613-02-02-4m.csv"))
header(d1)
footer(d1)
rd1(d1)[, table(Year)]

[Package eoR version 0.4.0 Index]