So I am trying to import some data from an R package into python in order to test some other python-rpy2 functions that I have written. In particular, I am using the
SpatialEpi package in R and the
So I was able to import the rpy2 package and connect to the package correctly. However, I am not sure how to access the data in the package.
import rpy2.robjects as robjects from rpy2.robjects.packages import importr spep = importr("SpatialEpi")
However, I can't seem to access the data object
pennLC in the
SpatialEpi package to test the function. The equivalent R command would be: