On Tue, 26 Jun 2012, Riccardo (Jack) Lucchetti wrote:
On Mon, 18 Jun 2012, Allin Cottrell wrote:
> (3) Open the source again: this time use both the --cols and
> --rowmask options to extract the particular data we want.
>
> To give a sense of the current syntax, here's a hansl example
> to carry out steps (1) to (3) above. I'll assume at first that
> we're reading from a delimited text file.
>
> <hansl>
> # read a specified column
> open huge.txt --cols=15 --delimited
> # create the observations mask
> matrix mask = (gender == 1)
> # re-open and read
> open huge.txt --cols=1,2,20,156 --rowmask=mask --delimited --preserve
> </hansl>
I suppose we could make the --preserve options implicit in --rowmask.
Otherwise, it makes little sense, doesn't it? Or am I missing something?
You're right, we should do that. It's a loose end that needs
fixing.
Allin