Normally in R one returns a list and assigns that to a single
variable but if you really want to do it here is how:
http://tolstoy.newcastle.edu.au/R/help/04/06/1430.html
On Sun, Apr 13, 2008 at 4:56 PM, Scott Romans <[EMAIL PROTECTED]> wrote:
> If we have a function that returns 2 or more values
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)
T
2 matches
Mail list logo