Skip to content
Prev 66316 / 398503 Next

Newbie: Matrix indexing

Hi Pascal,

One thing you can do is to work on indexes, count unique occurences and
assign them, as following:
coding (as table turns into factors)
[,1] [,2]
[1,]    3    0
[2,]    0    0

Eric


Eric Lecoutre
UCL /  Institut de Statistique
Voie du Roman Pays, 20
1348 Louvain-la-Neuve
Belgium

tel: (+32)(0)10473050
lecoutre at stat.ucl.ac.be
http://www.stat.ucl.ac.be/ISpersonnel/lecoutre

If the statistics are boring, then you've got the wrong numbers. -Edward
Tufte