If we have a function that returns 2 or more values (such as dim as  
applied to a matrix), can we assign these 2 or more values to an equal  
number of differently named variables in one line? For example, is  
there any way to do something like this:

[NumberRows NumberColumns] <- dim(MatrixA)

Thanks in advance!

Scott

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to