how to open a dataset using the R extension on SPSS??

Hi, grad student here, not much skilled with R. I was taught how to use SPSS, but my supervisor uses R so he sent me the syntax for our research analysis in R-code and I tried to run it on SPSS (version 27) using the R extension (version 3.6) (Windows user here), but it's not working and I don't know why.

I tried opening the file using R language but nothing shows up on the dataset page, and no error appears on the output page either, just the command followed by a "- /", and I have no idea what it means. So I tried opening the dataset using normal SPSS coding, and it works, but then I used another R command (copied and pasted from the file my professor sent me, so it should work) to convert a string variable in a numeric one, but again the output page just shows the command with no error mentioned while nothing happens on the dataset. Any idea why???

Again, I am absolutely clueless as to what I should expect, I have never used the R extension on SPSS, and I only tried this time because R is totally foreign to me and have no idea how to use it.
Can anyone help? Thanks!

You are likely better off asking this question on an SPSS forum. I suspect we do not have a lot of people here that know much about SPSS and especially about R extensions for SPSS.

I know I have not used SPSS in many years. I keep being surprised it still exists.

If the data is not confidential or you can give use some simulated data either in Excel or in . csv form, (stick the Excel file on something like Dropbox) and provide your R code here we may be able to walk you through using R.

See, for general suggestions:
FAQ Asking Questions

For .csv format out put the data to a .csv file Copy the output and paste it here between


Sorry to not be of more help.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.