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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.