Hi Adrian, thanks for the hint. The problem was that it showed me help for matrix when I did ?as.matrix. I thought it was some kind of convention that data type conversion functions start with "as.", so now I will take more care in the future. With matrix() it works as expected, thanks again. Michael