Skip to content
Prev 82667 / 398506 Next

sample matrix

Hi Mauricio,
Although you question is not clear, I'm supposing that you want to save 
as a new object (matrix) whatever is printed out from "cat(x,m,"\n")".
If this is the case, then your result is a matrix with 5 rows and 4 
columns. For each row, the first 3 values are "x" and the last value is "m".
Maybe this will help you.
result<- matrix(0, 5,4)
result[i,1:3]<-x
result[i,4]<-m
Hopefully the object that you wanted is "result"


HTH