Repository navigation
SORT CASES, ADD FILES, MATCH FILES, VARSTOCASES and CASESTOVARS against R on invented files - #460
Merged
Merged
Conversation
…st R on invented files
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thirty cases on invented files compared with base R (order, rank, match, rbind), each rule written out on its own: ascending and descending sorts with a missing key and string keys, interleaving, duplicate keys matched first with first, a table file, a parallel match of three files of different lengths, two keys, IN, FIRST, LAST, RENAME, DROP, KEEP; wide to long with a numeric, a name and a double index, ID, COUNT, NULL, a repeated variable and strings; long to wide with INDEX, no INDEX, GROUPBY, SEPARATOR, RENAME, VIND, COUNT, AUTOFIX=NO and SPLIT FILE. Plus a test of what the manual refuses (type clash, duplicate table keys, mixed types in FROM) and the longest width of a string MAKE. Everything agrees at once: no engine change, tests only, so no changelog line. Choices pinned in planning section 8: the name index of VARSTOCASES gives the names as written (the manual's example prints capitals); KEEP of VARSTOCASES names copied variables only; ADD FILES widens strings (the recorded extension). Review: medium, one round, nits only (internal path removed from the doc comment, loud failure in the helper, the missing-value rule stated).