From 80bb032dd841a081cfa4bc4b8208669902d54ae2 Mon Sep 17 00:00:00 2001 From: Bernhard Meindl Date: Tue, 28 Jan 2025 14:16:21 +0100 Subject: [PATCH] do not change variable names when setting up the table-instance, fixing #17 --- DESCRIPTION | 1 - NEWS.md | 3 +++ R/cellkey_pkg.R | 3 --- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4108c41..0890fa2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -34,7 +34,6 @@ Imports: parallel License: GPL-2 Encoding: UTF-8 -RoxygenNote: 7.2.3 Suggests: testthat, knitr, diff --git a/NEWS.md b/NEWS.md index f9e85c3..b766173 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +# cellKey 1.0.3 (next) +- Do not modify variable names in `ck_setup()` [https://github.com/sdcTools/cellKey/issues/17] + # cellKey 1.0.2 - Performance Fix: Do not compute contributing indices (relevant only for the perturbation of numerical variables) if no such variables were specified in `ck_setup()` - Prefix logging-Outputs with a timestamp diff --git a/R/cellkey_pkg.R b/R/cellkey_pkg.R index 7ffd517..9a78cbc 100644 --- a/R/cellkey_pkg.R +++ b/R/cellkey_pkg.R @@ -154,9 +154,6 @@ ck_class <- R6::R6Class("cellkey_obj", cloneable = FALSE, stop("Some elements provided in `numvars` are not numeric.", call. = FALSE) } - setnames(x, numvars, tolower(numvars)) - numvars <- tolower(numvars) - # compute weighted variables and index to compute record keys for only # units actually contributing numvars_w <- paste0("ws_", numvars)