Re: [R] VEC Operator in R

2008-10-23 Thread Henrique Dallazuanna
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] VEC Operator in R

2008-10-23 Thread Henrique Dallazuanna
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] VEC Operator in R

2008-10-23 Thread Gabor Grothendieck
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] VEC Operator in R

2008-10-23 Thread Gabor Grothendieck
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] VEC Operator in R

2008-10-23 Thread Patrick Burns
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] VEC Operator in R

2008-10-23 Thread Patrick Burns
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] VEC Operator in R

2008-10-23 Thread Kingsford Jones
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] VEC Operator in R

2008-10-23 Thread Kingsford Jones
Sender: [EMAIL PROTECTED] On-Behalf-Of: [EMAIL PROTECTED] Subject: Re: [R] VEC Operator in R Message-Id: <[EMAIL PROTECTED]> Recipient: [EMAIL PROTECTED] This information is being sent at the recipient's request or with thei

Re: [R] VEC Operator in R

2008-10-23 Thread Kingsford Jones
RSiteSearch('vec vech', restrict = 'fun') turns up several packages with vec and vech functions. E.g., matrixcalc, fUtilities, ks, ... hth, Kingsford Jones On Thu, Oct 23, 2008 at 11:47 AM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VE

Re: [R] VEC Operator in R

2008-10-23 Thread Patrick Burns
For 'VEC' you may not need to do anything -- in a lot of circumstances it will just work. For 'VECH' you can write a function using the 'lower.tri' function. But it seems to me that the assumption behind your question is that a simple function that someone else has written is going to be better

Re: [R] VEC Operator in R

2008-10-23 Thread Gabor Grothendieck
Try: RsiteSearch("vech") On Thu, Oct 23, 2008 at 1:47 PM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VEC" and > "VECH" operator on Matrix? Yes of course, I can write a > user-defined-function for that or else, I can put dim(mat) <- NULL.

Re: [R] VEC Operator in R

2008-10-23 Thread Sarah Goslee
It might help if you told us what you expected VEC and VECH to do. On Thu, Oct 23, 2008 at 1:47 PM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VEC" and > "VECH" operator on Matrix? Yes of course, I can write a > user-defined-function for t

Re: [R] VEC Operator in R

2008-10-23 Thread Henrique Dallazuanna
I think you can use as.vector On Thu, Oct 23, 2008 at 3:47 PM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VEC" and > "VECH" operator on Matrix? Yes of course, I can write a > user-defined-function for that or else, I can put dim(mat) <- N

Re: [R] VEC Operator in R

2008-10-23 Thread Gábor Csárdi
And what is this "operator" supposed to do? Maybe you just want as.vector, but it is hard to say from this. Gabor On Thu, Oct 23, 2008 at 7:47 PM, megh <[EMAIL PROTECTED]> wrote: > > Can anyone please tell whether there is any R function to act as "VEC" and > "VECH" operator on Matrix? Yes of cou