R Under development (unstable) (2023-08-20 r84995 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # require(sdcMicro) > # data(testdata) > # sdc <- createSdcObj(testdata, keyVars = c("urbrur", "water", "sex", "age"), > # numVars = c("expend", "income", "savings"), w = "sampling_weight", hhId = "ori_hid") > # > # print(sdc) > # sdc2 <- globalRecode(sdc, column = "age", breaks = c(1, 9, 19, 29, 39, 49, 59, 69, 100), labels = 1:8) > # print(sdc2) > # > # f1 <- get.sdcMicroObj(sdc, "risk")$individual[, "fk"] > # f2 <- get.sdcMicroObj(sdc2, "risk")$individual[, "fk"] > # if (identical(f1, f2)) stop("frequency counts are not updated") > > proc.time() user system elapsed 0.18 0.04 0.21