On Wed, Nov 4, 2015 at 4:29 PM, Joe Bogner <[email protected]> wrote:
> I think ragged lines in this context means delimited text (not fixed width).
>
> It sounds like the author recognizes the options:
>
> "For J the choice is not quite as clear. One way of loading the data
> would be to `box' each line and then create a vector of boxes to
> represent all of the data in the file. This works fine, but whenever
> we want to work with the characters within a line, we'd have to unbox
> it before doing so. An alternative would be to load the file as a
> character array, but this would necessitate `squaring up' the data,
> padding each of the lines out to match the length of the longest
> single line, thus producing a rectangular matrix. While either of
> these choices could be made to work, they generally seem, to me at
> least, to be somewhat cumbersome in comparison with K's much more
> straightforward treatment."
>
> What's unclear to me is what the author means by this: "but whenever
> we want to work with the characters within a line, we'd have to unbox
> it before doing so." - specifically what "work with the characters"
> means.

Another option involves a one dimensional array of characters, and
then working with indices and corresponding sequence lengths in that
array...

But it's hard to say anything useful about an unknown problem.

Thanks,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to