# Narray question

**URL:** <https://rubytalk.org/t/narray-question/40005>\
**Category:** ruby-talk\
**Created:** [17 August 2007 19:39 UTC](https://rubytalk.org/t/narray-question/40005 "2007-08-17T19:39:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michaels](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Michaels](https://rubytalk.org/u/Michaels)\
**Post date:** [17 August 2007 19:39 UTC](https://rubytalk.org/t/narray-question/40005/1 "2007-08-17T19:39:04Z")

</div>

Hello, I am having an issue with a large dataset I am using. My  
problem is I try to convert from an array to Narray and it seems like  
the size is changing.

To check this, in the middle of my script I wrote

puts f.size  
puts count.size  
puts count  
x=NArray.to\_na(count)  
puts x.size

the results  
900  
900  
[the numbers in a column]  
1754

---

<div class="post-metadata">

**Author:** ![Michaels](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@Michaels](https://rubytalk.org/u/Michaels)\
**Post date:** [17 August 2007 20:02 UTC](https://rubytalk.org/t/narray-question/40005/2 "2007-08-17T20:02:53Z")

</div>

sorry, made a mistake in code.

> **···**
>
> On Aug 17, 3:39 pm, Michaels \<fixedincome...@gmail.com\> wrote:
> 
> > Hello, I am having an issue with a large dataset I am using. My  
> > problem is I try to convert from an array to Narray and it seems like  
> > the size is changing.
> > 
> > To check this, in the middle of my script I wrote
> > 
> > puts f.size  
> > puts count.size  
> > puts count  
> > x=NArray.to\_na(count)  
> > puts x.size
> > 
> > the results  
> > 900  
> > 900  
> > [the numbers in a column]  
> > 1754
