Nils et al,
I am now clear. I think I made it more difficult by choosing a poor example (see below for working code), but I learned in the process. One step forward two steps back as they say! Regards Peter
using CSV
using DataFrames
using DelimitedFiles
function foo()
out= zeros(5,7)
y=[1,2,3,4,5] # Test vector
for i in 1:5
a=i # Test value
b=i*i # Test value
out[i,:] = vcat(y,a,b)
end
CSV.write("MyOutput.csv", Tables.table(out),delim=',',decimal='.')
end
foo()