Skip to content
Back to formatted view

Raw Message

Message-ID: <FD681FBF-70BC-4D28-99A9-4260850E1D56@mac.com>
Date: 2006-05-02T05:16:06Z
From: Parlamis Franklin
Subject: expression objects

if 'e' is a vector of mode 'expression', will the following always  
return TRUE:

identical(e, parse(text = as.character(e)))  ?

 > (e <- expression(x, y, z, 200*f%/%d, sin(e)))
expression(x, y, z, 200 * f%/%d, sin(e))
 > identical(e, parse(text = as.character(e)))
[1] TRUE

i have been relying on this fact in some of my code, and would be  
appreciative of any counterexamples.

franklin parlamis