title: Make a list from ls(pattern="") [R]
body: <p>The <code>ls(pattern="")</code> function is very useful for me, since my list of objects seem to keep growing and growing. I am curious if this feature can be more useful.</p>
  
  <p>For example, let's say i have 4 objects,</p>
  
  <pre><code>a.c&lt;-1
  b.c&lt;-2
  c.c&lt;-3
  d.c&lt;-4
  </code></pre>
  
  <p>Now i use the useful <code>ls(pattern="")</code> function</p>
  
  <pre><code>ls(pattern=".c")
  </code></pre>
  
  <p>Now i try to make a list</p>
  
  <pre><code>list(ls(patter=".c"))
  </code></pre>
  
  <p>But it doesn't give me anything useful( <code>"a.c" "b.c" "c.c" "d.c"</code> ).  I want either of these two outputs</p>
  
  <pre><code>1,2,3,4
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>a.c, b.c, c.c, d.c
  </code></pre>