Skip to content

Commit

Permalink
move the raw data from data to inst/extdata
Browse files Browse the repository at this point in the history
  • Loading branch information
walke committed Sep 20, 2019
1 parent cd5970c commit a22b1b6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions R/eo1.R
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ readEX1x1 <- function(infile)
}

# read all information from 'GENESIS-Tabelle: 12613-02-02-4'
# Statistische Ämter des Bundes und der Länder, Deutschland, 2019
# Statistische ?mter des Bundes und der L?nder, Deutschland, 2019
readRegDeath <- function(infile)
{
rdft0 <- readLines(infile, n=7)
Expand Down Expand Up @@ -353,7 +353,7 @@ readRegDeath <- function(infile)


# read all information from 'GENESIS-Tabelle: 12613-02-02-4'
# Statistische Ämter des Bundes und der Länder, Deutschland, 2019
# Statistische ?mter des Bundes und der L?nder, Deutschland, 2019
readRegExp <- function(infile)
{
(rexpt0 <- readLines(infile, n=9))
Expand Down Expand Up @@ -393,7 +393,7 @@ readRegExp <- function(infile)
# read all information from the file fltper_1x1
# example data source: Human Mortality Database https://www.mortality.org/
# period life tables 1x1 female
infile <- file.path("..","data","DEUTNP.fltper_1x1.txt")
infile <- file.path("..","inst","extdata","DEUTNP.fltper_1x1.txt")

o1 <- readLT1x1(infile)

Expand Down Expand Up @@ -430,7 +430,7 @@ showMethods("length")
# read all information from the file Exposures_1x1
# example data source: Human Mortality Database https://www.mortality.org/
# period life tables 1x1 female
infile2 <- file.path("..","data","DEUTNP.Exposures_1x1.txt")
infile2 <- file.path("..","inst","extdata","DEUTNP.Exposures_1x1.txt")

e1 <- readEX1x1(infile2)

Expand Down Expand Up @@ -463,10 +463,10 @@ showClass("EX1")
showMethods("length")

# read all information from 'GENESIS-Tabelle: 12613-02-02-4'
# Statistische Ämter des Bundes und der Länder, Deutschland, 2019
# Gestorbene nach Geschlecht, Nationalität und Altersgruppen -
# Jahressumme - regionale Tiefe: Kreise und krfr. Städte
infile3 <- file.path("..","data","12613-02-02-4.csv")
# Statistische ?mter des Bundes und der L?nder, Deutschland, 2019
# Gestorbene nach Geschlecht, Nationalit?t und Altersgruppen -
# Jahressumme - regionale Tiefe: Kreise und krfr. St?dte
infile3 <- file.path("..","inst","extdata","12613-02-02-4.csv")

d1 <- readRegDeath(infile3)

Expand Down Expand Up @@ -510,9 +510,9 @@ showMethods("length")


# read all information from 'GENESIS-Tabelle: 12411-03-03-4'
# Statistische Ämter des Bundes und der Länder, Deutschland, 2019
# Bevölkerung nach Geschlecht, Nationalität und Altersgruppen
infile4 <- file.path("..","data","12411-03-03-4.csv")
# Statistische ?mter des Bundes und der L?nder, Deutschland, 2019
# Bev?lkerung nach Geschlecht, Nationalit?t und Altersgruppen
infile4 <- file.path("..","inst","extdata","12411-03-03-4.csv")

r1 <- readRegExp(infile4)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a22b1b6

Please sign in to comment.