我目前正在尝试为(官方文档lmeSplines
的第 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'