title: Accessing functions with a dot in their name (eg. "as.vector") using rpy2
body: <p>I am trying to access the "as.vector" R function from within Python, using rpy2. Let's say, for the sake of simplicity, that I want to do something as simple as this using rpy2 (R code):</p>
  
  <pre><code>x &lt;- as.vector(c(1, 2, 3))
  </code></pre>
  
  <p>Since "as.vector" contains a dot in its name, it is not directly available as a member of rpy2.robjects.r</p>
  
  <p>According to the documentation, rpy2 replaces dots by underscores for named function parameters, but it doesn't seem to work for the function name itself. I tried eg. "as_vector", "asvector" to no avail.</p>
  
  <p>Any ideas?</p>