[R] computing on expressions
wwwhsd at gmail.com
Fri Oct 3 18:08:47 CEST 2008
parse(text = paste(capture.output(expr[]), " & b > 0"))
On Fri, Oct 3, 2008 at 12:48 PM, Vadim Organovich
<vogranovich at jumptrading.com> wrote:
> Dear R-users,
> Suppose I have an expression:
> expr = expression(a>0)
> and now I want to modify it to expression(a>0 & b>0). The following doesn't work:
> expr = expression(expr & b>0)
> What would be a good way of doing this?
> Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. Jump Trading, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
25° 25' 40" S 49° 16' 22" O
More information about the R-help