Hello Sven,
Thanks! Of course, it works. And, perhaps, this alternative is bit more
efficient at it requires one step less. I buy any of the two solutions
provided.
Warm regards,
Cruz
-----Mensaje original-----
De: Sven Schreiber [mailto:svetosch@gmx.net]
Enviado el: sábado, 25 de mayo de 2019 16:00
Para: gretl-users(a)gretlml.univpm.it
Asunto: [Gretl-users] Re: delete variables
Am 25.05.2019 um 11:13 schrieb Artur Tarassow:
Am 25.05.19 um 11:08 schrieb cruz.echevarria(a)ehu.eus:
> 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>
Or, since you mentioned "save", maybe it's worth pointing out that the
'store' command also accepts a list of variables. So you could simply do:
store myfile.gdt LRM IBO
(or: store myfile.gdt keep, with the 'keep' list defined as above)
at the end of your work with the data.
cheers
sven
_______________________________________________
Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
Website:
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/