-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DS-3773: various fixes to merging of data sets (#32)
* Temp file * Update * Fixes [revdep skip] * Improve matching [revdep skip] * Fix bug found by Lena * Fix tests [revdep skip] * Fix warning [revdep skip]
- Loading branch information
1 parent
8519d49
commit f621f88
Showing
6 changed files
with
127 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# d <- haven::read_sav("wincross exported file sr wave 1.sav") | ||
# attr(d[[1]], "labels") <- NULL | ||
# haven::write_sav(d, "wincross exported file sr wave mod.sav") | ||
# | ||
# d2 <- haven::read_sav("fs22001 sr brand wave 2.sav") | ||
# attr(d2[["Q5r97"]], "labels") <- NULL | ||
# haven::write_sav(d2, "fs22001 sr brand wave mod.sav") | ||
# | ||
# a <- MergeDataSetsByCase(c("wincross exported file sr wave mod.sav", "fs22001 sr brand wave mod.sav"), | ||
# auto.select.what.to.match.by = FALSE, match.by.variable.names = TRUE, | ||
# match.by.variable.labels = FALSE, match.by.value.labels = FALSE, | ||
# ignore.non.alphanumeric = FALSE) | ||
|
||
# Issues: | ||
# RECORD/record variables not merging (one is numeric, one categorical) | ||
# Q5R97 merged into Q5_r97 instead of Q5r97 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters