Re: [R] creating a symmetric matrix

2012-09-07 Thread Bert Gunter
, TX 77843-4352 > > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> project.org] On Behalf Of Erin Hodgess >> Sent: Thursday, September 06, 2012 8:11 PM >> To: R help >> Subject: [R] creating a symmetric matrix &

Re: [R] creating a symmetric matrix

2012-09-07 Thread David L Carlson
Behalf Of Erin Hodgess > Sent: Thursday, September 06, 2012 8:11 PM > To: R help > Subject: [R] creating a symmetric matrix > > Dear R People: > > Suppose I have the following: > > x <- 1:4 > > And I want to create the following matrix: > > 1 2 3 4 > 2 1

Re: [R] creating a symmetric matrix

2012-09-06 Thread William Dunlap
boun...@r-project.org] On > Behalf > Of Erin Hodgess > Sent: Thursday, September 06, 2012 6:11 PM > To: R help > Subject: [R] creating a symmetric matrix > > Dear R People: > > Suppose I have the following: > > x <- 1:4 > > And I want to create the following

[R] creating a symmetric matrix

2012-09-06 Thread Erin Hodgess
Dear R People: Suppose I have the following: x <- 1:4 And I want to create the following matrix: 1 2 3 4 2 1 2 3 3 2 1 2 4 3 2 1 Is there a function in place for this, please? I looked at symMatrix in micEcon and some of the items in Matrix, but they didn't quite do it. I can put together s