On Wed, 20 Sep 2017, Schaff, Frederik wrote:
>> However, I can see that since you want to import hundreds of
series, "join"
>> is not going to be very convenient.
>
> Heh. I beg to differ :)
>
> Here's an alternative implementation which uses "join". Evaluating the
> relative merits of the two solutions is left as an exercise to the reader.
Ha, I suspected there could be a nice way of using "join" for the job,
and naturally Jack has found it!
Thanks. This is more concise (and in some points more general - the
rest I changed), but the join command does not work...? The problem
seems to be that
<hansl>
cmd = sprintf(" %s %s --ikey=ABMAT_ConfigID\n", fname, v)
</hansl>
Does somehow not parse "v" to cmd. If I print cmd, the content of
"v" is missing. If I only print v, it is fine. Is there a maximum
string length or such?
Ah, I think this is due to the invalid identifiers in your tsv files,
for example "Attendance_L-Skew_I1" (dashes/minus signs not allowed).
"join" is supposed to be able to handle this; the use of the "fixname"
function in Jack's script is the prescribed mechanism. But apparently
something is going wrong in this case. We'll investigate.
Allin