Skip to content

SORT CASES, ADD FILES, MATCH FILES, VARSTOCASES and CASESTOVARS against R on invented files - #460

Merged
TonisOrmisson merged 1 commit into
mainfrom
dm-merge
Nov 27, 2026
Merged

TonisOrmisson merged 1 commit into
mainfrom
dm-merge

Conversation

@TonisOrmisson

Copy link
Copy Markdown
Contributor

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).

@TonisOrmisson
TonisOrmisson merged commit 3525d7a into main Nov 27, 2026
3 checks passed
@TonisOrmisson
TonisOrmisson deleted the dm-merge branch November 27, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant