Am 28.02.19 um 18:56 schrieb Allin Cottrell:
On Thu, 28 Feb 2019, Sven Schreiber wrote:
> Am 27.02.2019 um 20:13 schrieb Allin Cottrell:
This is now in place for series, lists, matrices, arrays and strings (in
which case the range refers to lines of text. Some examples below. You
can give a predefined scalar in place of a numeric value for start and
stop, but at present you can't compute a value within the option string.
Thank you for this, Allin. This is very cool!
By the way, I've stumbled about the "tree" option for the print command.
But I don't get any output when callling it:
<hansl>
clear
set verbose off
open data4-1
matrix m = mnormal(10,2) ~ seq(1,10)'
strings S = array(15)
loop i=1..nelem(S) -q
S[i] = sprintf("string%d", i)
endloop
string s =
readfile("http://gretl.sourceforge.net/")
# bundle 1
bundle b1 = null
b1.e1 = price
b1.e2 = sqft
b1.e3 = S
b1.e4 = m
b1.e5 = s
# copy b1
bundle b2 = b1
# construct array of bundles
bundles B = defarray(b1, b2)
# print array
print B --tree
</hansl>
Artur