R package to convert SPSS syntax to R code
A set of functions that takes SPSS syntax as input and outputs R commands
to do the same analysis or data management tasks.
devtools::install_github("lebebr01/SPSStoR")
library(SPSStoR)
# Multiple commands in one
spss_to_r(system.file("SPSSsyntax", "getDescExamp.txt", package = "SPSStoR"))
spss_to_r(system.file("SPSSsyntax", "aggregateExamp.txt", package = "SPSStoR"))
spss_to_r(system.file("SPSSsyntax", "correlationsExamp.txt", package = "SPSStoR"))
spss_to_r(system.file("SPSSsyntax", "crosstabExamp.txt", package = "SPSStoR"))
spss_to_r(system.file("SPSSsyntax", "sortCasesExamp.txt", package = "SPSStoR"))
spss_to_r(system.file("SPSSsyntax", "descriptivesExamp.txt", package = "SPSStoR"))
# t-test one-sample
spss_to_r(system.file("SPSSsyntax", "ttestOneSampExamp.txt", package = "SPSStoR"))
# Independent t-test example
spss_to_r(system.file("SPSSsyntax", "ttestTwoSampValExamp.txt", package = "SPSStoR"))
spss_to_r(system.file("SPSSsyntax", "getExamp.txt", package = "SPSStoR"))
spss_to_r(system.file("SPSSsyntax", "graphExamps.txt", package = "SPSStoR"))
spss_to_r(system.file("SPSSsyntax", "frequenciesExamp.txt", package = "SPSStoR"))