RE1-class {eoR} | R Documentation |
RE1 class for 'GENESIS-Tabelle: 12411-03-03-4'
Description
The class RE1
stores GENESIS table information in a systematic way.
The header
-method gets the raw header information of an RE1 object
The footer
-method gets the raw footer information of an RE1 object
The re1
-method gets the exposure table information of an RE1 object
The re1total
-method gets the exposure total sums table information of an RE1 object
The content
-method gets the exposure table information of an RE1 object
The region
-method gets the regional information of an RE1 object
The protocol
-method gets the protocol information of an RE1 object
The RegExp1
-constructor creates an RE1 object
The length
-method gets the number of rows int the RE1 re1 data.table
The selectYears
-method gets a subset of an RE1 object
The selectRegion
-method gets a subset of an RE1 object
The readRegExp
-method reads all information from 'GENESIS-Tabelle: 12411-03-03-4'
Usage
## S4 method for signature 'RE1'
header(object)
## S4 method for signature 'RE1'
footer(object)
## S4 method for signature 'RE1'
re1(object)
## S4 method for signature 'RE1'
re1total(object)
## S4 method for signature 'RE1'
content(object)
## S4 method for signature 'RE1'
region(object)
## S4 method for signature 'RE1'
protocol(object)
RegExp1(header, footer, re1, re1total, content, region, protocol)
## S4 method for signature 'RE1'
length(x)
## S4 method for signature 'RE1'
show(object)
## S4 method for signature 'RE1'
selectYears(object, selectYears)
## S4 method for signature 'RE1'
selectRegion(object, selectRegion)
readRegExp(infile)
Arguments
object |
RE1-object |
header |
vector |
footer |
vector |
re1 |
data.table |
re1total |
data.table |
content |
character |
region |
character |
protocol |
character |
x |
RE1-object |
selectYears |
vector |
selectRegion |
vector |
infile |
character file name |
Details
This RE1
class fits to the GENESIS table 12411-03-03-4.
See https://www.regionalstatistik.de/genesis/online for data details.
An RE1 instance stores the raw header, the raw footer, the content,
the version protocol and regional information and the
exposure information as a data.table object. Further it stores a second data.table
with the total sums information.
Try demo(RE1) for a demonstration.
Value
The header
-method returns the raw header information
The footer
-method returns the raw footer information
The re1
-method returns the exposure table
The re1total
-method returns the exposure 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 RegExp1
-constructor returns an RE1 object
The length
-method returns the number of rows
The selectYears
-method returns an RE1 object
The selectRegion
-method returns an RE1 object
The readRegExp
-method returns an RE1 object
Slots
content
describes the content
region
regional entity
header
includes the raw header information
footer
includes the raw footer information
re1
stores the exposure table (data.table)
re1total
stores the exposure total sums table (data.table)
protocol
contains the protocol information
Examples
r1 <- readRegExp(file.path(system.file(package="eoR"), "extdata", "12411-03-03-4m.csv"))
header(r1)
footer(r1)
re1(r1)[, table(Year)]