or should be
[1] 1 2 3 4 3 4 2 3 4 1 2 3 4
i.e. the first column with the max, or the last column
same if
z <- embed(x,5)
max.col(z)
[1] 2 1 2 5 1 5 3 4 1 2 3 4
where it should be either of:
2 1 2 3 1 2 3 4 1 2 3 4
2 3 4 5 4 5 3 4 5 2 3 4
or I am missing something?
?max.col does not return anything
R 1.7.0 on Win98
.
Heberto.Ghezzo at McGill.ca