Skip to content

Commit 4747fe4

Browse files
committed
- fix inconsistency in rankSwap() Output [Issue #361]
1 parent 0de7f70 commit 4747fe4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 5.7.10
2+
- fix inconsistency in `rankSwap()` Output [Issue #361]
3+
14
# 5.7.9
25
- Improvements for `recordSwap()`:
36
+ `hid`, `risk_variables`, `hierarchy`, `similar` and `carry_along` now accept factor variables as inputs

R/rankSwap.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ setMethod(
201201
if (sum(index_missing) > 0 & is.na(missing)) {
202202
dat[dat == miss_val] <- NA
203203
}
204+
attributes(dat) <- NULL
204205
obj[, variables] <- dat
205206
invisible(obj)
206207
})

0 commit comments

Comments
 (0)