Discrete Kolmogorov-Smirnov testing: getting wrong value when using rpy2 compared to pure R
问题 I am trying to use the dgof module from R, in Python 3 via rpy2 . I use it inside python as so: # import rpy2's package module import rpy2.robjects.packages as rpackages # Import R's utility package utils = rpackages.importr('utils') # Select a mirror for R packages utils.chooseCRANmirror(ind=1) # select the first mirror in the list # R vector of strings from rpy2.robjects.vectors import StrVector # Install R package name: 'dgof' (discrete goodness-of-fit) is what we're interested in if