From: "trans. (T. Onoma)" Date: 2004-10-14T02:00:14+09:00 Subject: Re: The Challenge of R On Wednesday 13 October 2004 12:05 pm, Ara.T.Howard@noaa.gov wrote: | On Wed, 13 Oct 2004, trans. (T. Onoma) wrote: | > I did not know NArray worked elementwise. Nice. For numbers at least, | > that's one hell of a solution Ara ;) | | it also works with any objects: | | jib:~ > cat b.rb | require 'narray' | na = NArray::to_na ['4', '7', '9', '2'] | puts(na[(na < '5').where].to_a.join) | | jib:~ > ruby b.rb | 42 Oh, even better. Then what does N stand for? I thought it was Numeric. Moreover, what are the important differences between Array and NArray. Why does Ruby choose Array over NArray? Thanks, T.