From dfb9520d891252d74cac8b6b3d062563595451ff Mon Sep 17 00:00:00 2001 From: thoenis Date: Wed, 5 Dec 2018 13:59:30 +0100 Subject: [PATCH] Fix order of labels of dimnames in read_swissdata_meta --- R/read_swissdata_meta.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/read_swissdata_meta.R b/R/read_swissdata_meta.R index 7006ed2..9952848 100644 --- a/R/read_swissdata_meta.R +++ b/R/read_swissdata_meta.R @@ -43,7 +43,7 @@ read_swissdata_meta <- function(path, locale = "de", as_list = FALSE) { # Work some dark magic to get units into it? # Is this smert? dimnames could be any old crazy strings - names(labels) <- meta_dimnames + names(labels) <- meta_dimnames[names(labels)] out <- as.data.table(labels)