Hi Cruz,
Am 25.05.19 um 11:08 schrieb cruz.echevarria(a)ehu.eus:
Dear Gretl Community,
In the hope that my question is not too silly: Is there a specific command to keep a
subset of variables and discard the rest?
No, no silly question at all.
I have large number of variables in my data set, but I only need a
small subset of them. I find that using the "delete" command works, but
inefficiently: it would be much easier just so save/keep/maintain/... the small number of
variables I am interested in. In other words, is there a complementary command to
"delete"?
Try this
<hansl>
open denmark.gdt -q
list keep = LRM IBO
list drop = dataset - keep
delete drop
</hansl>
Best,
Artur