Skip to content
Back to formatted view

Raw Message

Message-ID: <403126F4.8090006@pdf.com>
Date: 2004-02-16T20:24:20Z
From: Spencer Graves
Subject: question about matrix
In-Reply-To: <20040216200411.26259.qmail@web20915.mail.yahoo.com>

outer(0:2, 1:2, "^")
     [,1] [,2]
[1,]    0    0
[2,]    1    1
[3,]    2    4

      Is this what you want? 

      spencer graves

Cynthia He wrote:

>Hello there,
> 
>     How to write this matrix in R?  The "^" sign is a power symbol.
> 
>     Thanks a lot!
> 
> 
> 0^1   0^2  .........  0^n 
> 1^1   1^2  .........  1^n
> 2^1   2^2  .........  2^n
>................................
>................................
> q^1   q^2  .........  q^n
>
>
>---------------------------------
>
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>  
>