We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
简短的回答是,抱歉,你是对的,没有工具可以自动将 SPSS 脚本转换为 R 脚本。更糟糕的是,这样的工具可能需要几个(很多?)人年才能创建,所以不要屏住呼吸。
一个小小的让步是,创建一个用于将 SPSS 的非常小的特定子集转换为 R 的工具可能并不难。例如,如果您有一段用于读取 CSV 文件的代码,那么您可以使用正则表达式来从 SPSS 代码中提取有用的位并自动生成一些 R 代码。然而,在大多数情况下,您自己手动移植代码会更容易、更快捷。
如果其他方法都失败了,请询问鲍勃·慕尼黑(Bob Muenchen);他非常了解将 SPSS 移植到 R。
The short answer is that sorry, you are right, there is no tool for automatically translating SPSS script to R script. Even worse, such a tool would likely take several (many?) man-years to create, so don't hold your breath.
A small concession is that it is probably not to hard to create a tool for translating very small, specific subsets of SPSS to R. For example, if you have a chunk of code for reading in CSV files, then you could use regular expressions to extract the useful bits from the SPSS code and autogenerate some R code from them. In most instances however it will be far easier and faster to manually port the code yourself.
If all else fails, ask Bob Muenchen; he know a lot about porting SPSS to R.
另一个选择是 SPSStoR,它声称能够将许多常见(但基本)的 SPSS 过程转换为R 代码。截至 2014 年 8 月,它似乎正在 GitHub 上积极开发。
Another option for this is SPSStoR, which claims to be able to translate many common (but basic) SPSS procedures to R code. It seems to be under active development on GitHub as of August 2014.
我知道这个问题最初提出已经过去 3 年多了,但值得注意的是,一家名为 eoda< 的德国公司< /a> 实际上正在开发这样的软件。它称为 translateR。它目前处于 Beta 状态,您可以在他们的网站上注册进行 Beta 测试。
I know it's been more than 3 years after the question was originally asked, but it's worth noting that a German company by the name of eoda is actually working on such software. It's called translateR. It is currently in beta status and you can register for a beta test on their website.