Dear All,
I would like to get a matrix (table) printed in a procedure, as
attempted below. Please help. Thanks.
test<-function(x){
table<-matrix(x,nrow=4)
cat("\nTable:\n",table)
invisible(list(table=table))
}
x<-1:20
test(x)
--
[email protected] (S.T. Yen)
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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.