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 their
specific understanding. The recipient acknowledges that by sending this
information via electronic means, there is no absolute assurance that the
information will be free from third party access, use, or further
dissemination. This e-mail contains information that is privileged and/or
confidential and may be subject to legal restrictions and penalties regarding
its unauthorized disclosure or other use. You are prohibited from copying,
distributing or otherwise using this information if you are not the intended
recipient. Past performance is not necessarily indicative of future results.
This is not an offer of or the solicitation for any security which will be made
only by private placement memorandum that may be obtained from the applicable
hedge fund. If you have received this e-mail in error, please notify us
immediately by return e-mail and delete this e-mail and all attachments from
your system. Thank You.
--- Begin Message ---
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 than a simple function
that you write. Not true (barring bugs).
R is egalitarian -- your functions have the same standing
as "official" functions. A lot of times it is faster to write
a function of your own rather than search out someone
else's even if you know such functions exist.
Patrick Burns
[EMAIL PROTECTED]
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")
megh 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. However
I am looking for some R function.
Your help will be highly appreciated.
Regards,
______________________________________________
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.
--- End Message ---
______________________________________________
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.