[R] What is wrong with this FOR-loop?
B.Rowlingson at lancaster.ac.uk
Mon Dec 5 13:05:28 CET 2005
Christian Hennig wrote:
>>for(i in 1:length(run_rows))
>> for(j in 1:length(run_cols))
Or the one-liner:
res = outer(run_rows,run_cols,"+")
but maybe its good to learn about array indexing first...
More information about the R-help