title: Create "missing objects" (aka: "empty symbols" , "empty objects") / needed for formals manipulation/
body: <p>How to create an "empty object" in R? [edit: I don't know how to rightly call this "thing" so I am calling it "empty object", others: "empty symbol", "zero length symbol", "missing object" might also be used]</p>
  
  <p>[edit2: finally I tend to settle down on the "missing symbol object" for the name of the "thing". It also appears that J.Chambers is using this terminology in his 2008 book, see comments for @mbq's answer. According to Chambers, the "missing symbol" has a zero-length string as it's contents. Thus, as.symbol("")  should create such an object, which it doesn't in current version of R(2.11.1) ] </p>
  
  <p>The simplest way I could find is </p>
  
  <pre><code>x &lt;- alist(a=)$a
  </code></pre>
  
  <p>[Clarification] </p>
  
  <p>Note that "empty object" is not a NULL object or a vector of length 0. 
  "Empty object" x in my above example could be used in the function's formals manipulation, which is what I need it for.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>&gt; al &lt;- alist(a = 323, b = , c = 434)  
  &gt; al  
  $a  
  [1] 323  
  $b  
  $c  
  [1] 434  
  
  &gt;   
  &gt; al[["c"]] &lt;- numeric()  
  &gt; al  
  $a  
  [1] 323  
  $b  
  $c                                   #not empty  
  numeric(0)  
  
  &gt;   
  &gt; al[["c"]] &lt;- list()              
  &gt; al  
  $a  
  [1] 323  
  $b  
  $c                                   #not empty  
  list()  
  
  &gt;   
  &gt;   
  &gt; al[["c"]] &lt;- NULL                    #object removed  
  &gt; al  
  $a  
  [1] 323  
  $b  
  
  
  &gt;   
  &gt; al[["c"]] &lt;- alist(a = )$a  
  &gt; al  
  $a  
  [1] 323  
  $b  
  $c                                      #empty  
  </code></pre>
  
  <p>So, I am just looking for a way  to create empty objects for use in function's formals manipulations. I am pretty sure there must be a way in base R.   </p>
  
  <p>Here is an example:</p>
  
  <pre><code>&gt; foo &lt;- function(a = 3232, b = 234){b+a}  
  &gt; formals(foo)  
  $a  
  [1] 3232  
  
  $b  
  [1] 234  
  
  &gt; formals(foo)$c &lt;- alist(a = )$a  
  &gt; formals(foo)  
  $a  
  [1] 3232  
  
  $b  
  [1] 234  
  
  $c  
  
  
  &gt; foo &lt;- function(a = 3232, b = 234){b+a}  
  &gt; formals(foo)  
  $a  
  [1] 3232  
  
  $b  
  [1] 234  
  
  &gt; formals(foo)$c &lt;- alist(a = )$a  
  &gt; formals(foo)  
  $a  
  [1] 3232  
  
  $b  
  [1] 234  
  
  $c  
  </code></pre>
  
  <p>Thanks.</p>