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 usin
Get a reference to the function using the rpy2.robjects.r interface.
So, you could do something like:
as_vector = robjects.r("as.vector")
vect = as_vector(r_vect)
According to the documentation, rpy2 does not replace dots by underscores when using 'rpy2.robjects.r'.
You may want to consider the use of 'importr()'