Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CJ(letters, letters) fails (duplicate column name)

Aperta
#7,873 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
r
Ambito
data

Direzione di ricerca

Start by reproducing CJ(letters, letters) and compare its behavior with CJ(letters, letters, sorted=FALSE), as shown in the issue. Trace the CJ() path that rejects duplicated column names when sorted=TRUE, then add coverage for the reported regression and verify that the intended unique-name behavior is achieved without breaking the existing duplicate-name protection.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I don't recall this being an issue previously so I bet this is a regression:

CJ(letters, letters)
# Error in CJ(letters, letters) : 
#   CJ() cannot create a keyed data.table with duplicated column names: [letters]

While I think it's intentional to prevent creating tables with duplicate names, I think it'd be friendlier to give unique names by default rather than error.

Note that sorted=FALSE fixes this:

CJ(letters, letters, sorted=FALSE)
Lingua principale
R
Stelle
3.9k
Fork
1.1k
Merge medio
15h 51m
PR unite (30g)
3

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Rdatatable/data.table

Tutte le issue di Rdatatable/data.table

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.