Re: [R] Make a matrix from two lists

2013-03-29 Thread John Sorkin
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

Re: [R] Make a matrix from two lists

2013-03-29 Thread Ben Tupper
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

[R] Make a matrix from two lists

2013-03-29 Thread John Sorkin
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