Ben,
Thank you. When I used print I saw the matrix; the problem was as you indicated
that I was using cat.
Thanks,
John
John David Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology
Baltimore VA Medical Center
10 North Green
Hi,
On Mar 29, 2013, at 1:29 PM, John Sorkin wrote:
> I am trying to write a function that makes a matrix out of two lists. As you
> will see run running the function below, the result is NOT a matrix but
> rather a list. Can anyone tell me what I am doing wrong?
> Thanks,
> John
>
> test <- f
I am trying to write a function that makes a matrix out of two lists. As you
will see run running the function below, the result is NOT a matrix but rather
a list. Can anyone tell me what I am doing wrong?
Thanks,
John
test <- function(one,two) {
cat("List One=",one,"\n")
cat("List Two=",tw
3 matches
Mail list logo