Skip to content
Notifications
Clear all

copying an index

2 Posts
1 Users
0 Reactions
1,352 Views
Posts: 10
Customer
Topic starter
(@ddb8zvbjy5qer2dwyzwynjlpc543)
Active Member
Joined: 3 years ago

I want two indexes, each with the same set of elements in the same order.  So I figured I could use Subset to do it, by taking a subset according to a criterion that is always true:  Idx := ['a', 'b', 'c']   and CopyIdx := Subset(Idx,1,Idx).  But I don't get letters in CopyIdx, I get numbers.  What gives?  How do I get a copy?

1 Reply
Posts: 10
Customer
Topic starter
(@ddb8zvbjy5qer2dwyzwynjlpc543)
Active Member
Joined: 3 years ago

Never mind.  Subset(idx) works.  Sorry.  It wouldn't let me delete the question.

Reply
Share:

Download Free Analytica


    We hate spam as much as you. We won't share your email with third parties.
    The free edition of Analytica includes these key Analytica features:
    Free Analytica has no time limit. The only constraint is it won’t let you create more than 100 variables or other objects. But your model can be quite substantial since each variable can be a multidimensional array. It also lets you explore, change inputs, and run existing models of any size (excluding features unique to the Enterprise or Optimizer editions).