Transposing a row into a column

User 1905 | 4/23/2016, 11:42:25 AM

Hi,

This seems like something basic but every time I need to do this I run into a problem. I was wondering how you guys handle this. Do I need a separate function to loop through all elements in a row and append them individually to an SArray? Or is there a quicker/easier way?

Thanks guys,

Saar...

Comments

User 1592 | 4/23/2016, 4:40:24 PM

Hi Saar You should use apply() and that way the rows will be processed in parallel.


User 1905 | 4/26/2016, 11:26:15 AM

Ok, so I use apply() and pass the row into a method where I can loop through all the values in the r.iteritems() to append them to an SArray?