title: from CSV to ndarray, and rpy2,
body: <p>I can make numpy ndarrays with rec2csv, </p>
  
  <pre><code>data = recfromcsv(dataset1, names=True)
  xvars = ['exp','exp_sqr','wks','occ','ind','south','smsa','ms','union','ed','fem','blk']
  y = data['lwage']
  X = data[xvars]
  c = ones_like(data['lwage'])
  X = add_field(X, 'constant', c)
  </code></pre>
  
  <p>But, I have no idea how to take this into an R data frame usable by Rpy2, </p>
  
  <pre><code>p = roptim(theta,robjects.r['ols'],method="BFGS",hessian=True ,y= robjects.FloatVector(y),X = base.matrix(X))
  
  ValueError: Nothing can be done for the type &lt;class 'numpy.core.records.recarray'&gt; at the moment.
  
  p = roptim(theta,robjects.r['ols'],method="BFGS",hessian=True ,y= robjects.FloatVector(y),X = base.matrix(array(X)))
  
  ValueError: Nothing can be done for the type &lt;type 'numpy.ndarray'&gt; at the moment.
  </code></pre>