Skip to content

Commit

Permalink
added GKZ 90001 Vienna (whole)
Browse files Browse the repository at this point in the history
  • Loading branch information
nachti committed Mar 18, 2016
1 parent 6545bb6 commit 54fb83a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: STATtools
Encoding: UTF-8
Type: Package
Title: Tools of Statistics Austria (STAT)
Version: 0.1.1
Date: 2016-02-11
Version: 0.1.2
Date: 2016-03-18
Authors@R: person("Gerhard", "Nachtmann",
email = "[email protected]",
role = c("aut", "cre"))
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ Development version from github:
# install.packages("devtools")
devtools::install_github("nachti/STATtools")
```

## NEWS

### 0.1.2 2016-03-18
added GKZ (Gemeindekennziffer) 90001 for Vienna

### 0.1.1 2016-02-11
First release
8 changes: 5 additions & 3 deletions data-raw/GCD.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
library(data.table)
source("./R/left.R")

gcdraw <- fread("data-raw/GCD.csv", encoding = "Latin-1")
gcdraw
gcdnum <- fread("data-raw/GCD.csv", encoding = "Latin-1")
gcdnum

gcdnum <- gcdraw[, lapply(.SD, left, 5)]
gcdcols <- grep("GKZ", names(gcdnum), value = TRUE)
gcdnum[, (gcdcols) := lapply(.SD, left, 5), .SDcols = gcdcols]
gcdnum
names(gcdnum)
gcdnum[, POP20150101e := as.numeric(POP20150101e)]
Expand Down Expand Up @@ -45,3 +46,4 @@ gcdnum[splitgem15]
# gcdnum <- as.data.frame(gcdnum)
# write.csv(data/gcdnum, "gcdnum.csv", row.names = FALSE)
save(gcdnum, file = "data/gcdnum.rda", compress = "xz")

1 change: 1 addition & 0 deletions data-raw/GCD.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2383,3 +2383,4 @@ GKZ11;GKZ12;GKZ13;GKZ15;GKZ16;POP20150101e
92101 Wien 21., Floridsdorf;92101 Wien 21., Floridsdorf;92101 Wien 21., Floridsdorf;92101 Wien 21., Floridsdorf;92101 Wien 21., Floridsdorf;151844
92201 Wien 22., Donaustadt;92201 Wien 22., Donaustadt;92201 Wien 22., Donaustadt;92201 Wien 22., Donaustadt;92201 Wien 22., Donaustadt;172978
92301 Wien 23., Liesing;92301 Wien 23., Liesing;92301 Wien 23., Liesing;92301 Wien 23., Liesing;92301 Wien 23., Liesing;96775
90001 Wien;90001 Wien;90001 Wien;90001 Wien;90001 Wien;1797337
Binary file modified data/gcdnum.rda
Binary file not shown.

0 comments on commit 54fb83a

Please sign in to comment.