【发布时间】:2014-07-14 01:24:16
【问题描述】:
我目前正在尝试重构 lmeSplines 的示例代码(official documentation 上的第 4 页和第 5 页)。
第一行代码是(R语法):
# smoothing spline curve fit
data(smSplineEx1)
如何通过 RPy 查看这些数据?我试过了:
from rpy2.robjects.packages import importr
lmeS = importr("lmeSplines")
print lmeS.smSplineEx1
我得到:
AttributeError: 'InstalledSTPackage' object has no attribute 'smSplineEx1'
【问题讨论】:
-
@furas,您能否将 OP 指向文档中有用的特定位置?
-
stackoverflow.com/questions/23326651/… 能回答你的问题吗?
-
@BenBolker 不认为对我有用,使用他们的方法我在 loadNamespace(name) 中遇到错误:没有名为“smSplineEx1”的包