how to creat a series which rearranges a series...

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

xubin1988
Posts: 6
Joined: Tue Oct 04, 2011 4:51 pm

how to creat a series which rearranges a series...

Postby xubin1988 » Wed Jul 04, 2012 2:24 pm

for example, i have a series:
{4,3,5}
I want to creat a series which rearrange it with a ascending order to :
{3,4,5}

how to write code??
thanks !

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

how to creat a series which rearranges a series...

Postby EViews Gareth » Wed Jul 04, 2012 2:35 pm

You can't really do that - it rarely makes sense in a series to do a sort. You can do it for a vector though with the @sort function.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests