Object Reference : Object View and Procedure Reference : Svector
  
 
fill
Fill a svector with the specified values.
Syntax
svector_name.fill(options) s1[s2 s3 …]
Follow the keyword with a list of strings to place in the svector object. Each value should be surrounded by double quotes if necessary, and values should separated by a space. Running out of values before the object is completely filled is not an error; the remaining cells or observations will be unaffected, unless the “l” option is specified to enable looping. If, however, you list more values than the object can hold, EViews will return an error message.
Options
 
l
Loop repeatedly over the list of values as many times as it takes to fill the vector.
o=integer (default=1)
Fill the svector starting from the specified element. Default is the first element.
Examples
sv1.fill a B c
sets the first element of SV1 to “a”, the second to “B” and the third to “c”.
sv1.fill(o=2) a "Hello World" name
sets the second element of SV1 to “a”, the third to “Hello World” and the fourth to “name”.
sv1.fill(o=4, l) first "" Last
sets the fourth element of SV1 to “first”, the fifth to be an empty string, and the sixth value to “Last”, then repeats the same three values for the remaining rows, so that the seventh element is set to “first”, the eight element is empty, the ninth set to “Last” and so on.
sv1.fill(l) ""
clears all of the values in the svector SV1.
An alternative approach to filling the elements of an svector uses the @sfill command to create a new svector, as in
svector vs2 = @fill("a”, "Hello World", "name”)
Cross-references
See “Matrix Language” for a detailed discussion of vector and matrix manipulation in EViews.