Resize or Initialise a Vector or Matrix to NA

For questions regarding programming in the EViews programming language.

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

Ecovi
Posts: 30
Joined: Sun Mar 23, 2014 9:34 am

Resize or Initialise a Vector or Matrix to NA

Postby Ecovi » Wed Aug 20, 2014 3:29 am

Is there a way to resize (enlarge) a vector or matrix and initialise the new elements to NA instead of zero, without the use of cumbersome for-loops and helping variables?

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

Re: Resize or Initialise a Vector or Matrix to NA

Postby EViews Gareth » Wed Aug 20, 2014 5:43 am

Nope.

Ecovi
Posts: 30
Joined: Sun Mar 23, 2014 9:34 am

Re: Resize or Initialise a Vector or Matrix to NA

Postby Ecovi » Wed Aug 20, 2014 7:44 am

Okay, a pity though!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest