New symbol .KEY that refers to the key of data table

Aperta
#2,130 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
r
Ambito
data

Direzione di ricerca

Start by reviewing data.table's existing handling of table keys and the by argument, then compare the requested behavior with the linked Stack Overflow question. Done means the example using .KEY groups by the data table key and produces the expected result.

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

Descrizione

feature request

It would be useful and more elegant (IMHO) to refer to the key of the data table with .KEY symbol:

x <- data.table(mtcars, key='cyl')
x[, .(mean=mean(mpg)), by=.KEY]

A StackOverflow questions where I asked about this is here: http://stackoverflow.com/questions/43589505/refering-to-the-key-of-data-table-in-by-argument-not-using-key

Lingua principale
R
Stelle
3.9k
Fork
1.1k
Merge medio
14h 4m
PR unite (30g)
4

Guida per i contributori

Apri la guida per i contributori

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.