suppose I have a function example:
 
getMatrix <- function(a,b){
 
     A1<-diag(1,2,2)
 
}
 
If I want to get the both the A1 and dim(A1) from the function, Can I do 
 
return(A1,dim(A1)) inside the function ? And how can I access A1 and dim(A1) later on? 
 
     


---------------------------------


	[[alternative HTML version deleted]]


