rpy2
convert numpy array to Matrix rpy2, Kmeans
I have a numpy 2D array self.sub and i want to use it in rpy2 kmeans. k = r开发者_如何学运维objects.r.kmeans(self.sub,2,20)[详细]
2023-02-02 02:42 分类:问答trouble with rpy2, rpart passing data correctly from python to r
I am trying to run rpart through RPY2 using Python 2.6.5 and R 10.0. I create a data frame in python and pass it along but I get an error stating:[详细]
2023-01-30 04:41 分类:问答Selecting a specific row from an rpy2 DataFrame
My data frame is survey data that I have got from a .csv file. One of the columns is age and I am looking to remove all respondents under 18 years of age. I\'ll then need to isolate age groups (18-24,[详细]
2023-01-28 04:19 分类:问答from CSV to ndarray, and rpy2,
I can make numpy ndarrays with rec2csv, data = recfromcsv(dataset1, names=True) xvars = [\'exp\',\'exp_sqr\',\'wks\',\'occ\',\'ind\',\'south\',\'smsa\',\'ms\',\'union\',\'ed\',\'fem\',\'blk\'][详细]
2023-01-25 08:43 分类:问答how to configure Sweave it's work and recognize for Rpy2?
how to configure Sweave it\'s work and recognize for开发者_JS百科Rpy2? I use this import rpy2.robjects as robjects[详细]
2023-01-24 11:14 分类:问答How to have recognized all the libraries Rpy2 R
How to have recognized all the libraries Rpy2 R. Rpy2 not recognizing the libraries, utils, and tools.[详细]
2023-01-24 09:27 分类:问答RPy2 - 2.1.7 Installation problems on WIN XP
Good morning everybody, I\'m really struggling during the installation of rpy version 2.1.7 on a windows XP machine.[详细]
2023-01-22 20:45 分类:问答Sorted quantile mean via Rpy
The real goal here is to find the quantile means (or sums, or median, etc.) in Python. Since I\'m not a power user of Python but have used R for a while, my chosen route is via Rpy. However, I ran int[详细]
2023-01-12 15:52 分类:问答Convert a R code into Python script
I got the following R code and I need to convert it to python and run it in python environment, basically I have done this with rpy2 module, but it looks kind of dull with python doing the same things[详细]
2023-01-10 21:07 分类:问答issue running a program (R) in Python to perform an operation (execute a script)
I\'m tying to execute an R script from python, ideally displaying and saving the results.Using rpy2 has been a bit of a struggle, so I thought I\'d just call R directly.I have a feeling that I\'ll nee[详细]
2023-01-09 12:08 分类:问答