# NOT RUN {
data <- data.frame(test = c(0.1, 0.15, 0.2, 0.3, 0.25))
df <- createDataFrame(data)
test <- spark.kstest(df, "test", "norm", c(0, 1))
# get a summary of the test result
testSummary <- summary(test)
testSummary
# print out the summary in an organized way
print.summary.KSTest(testSummary)
# }
Run the code above in your browser using DataLab