(no title)
gwu78 | 8 years ago
What is the smart way to do this in kdb+?
This is my naive, sloppy 15min approach.
Warning: Noob. May offend experienced k programmers.
k)`t insert+:`k`v!("CI";"\t")0:`:tsvfile
k)f:{select (*:k),(sum v) from t where k=x}
k)a:f["A"]
k)b:f["B"]
k)c:f["C"]
k)select k from a,b,c where v=(max v)
qesa|8 years ago
EDIT:
gwu78|8 years ago
Regarding the 1gram file at https://storage.googleapis.com/books/ngrams/books/googlebook...
This is the result I got
using or No doubt I must be doing some things wrong.