Create a SparkDataFrame
createDataFrame.Rd
Converts R data.frame or list into SparkDataFrame.
Usage
createDataFrame(data, schema = NULL, samplingRatio = 1, numPartitions = NULL)
as.DataFrame(data, schema = NULL, samplingRatio = 1, numPartitions = NULL)
Examples
if (FALSE) { # \dontrun{
sparkR.session()
df1 <- as.DataFrame(iris)
df2 <- as.DataFrame(list(3,4,5,6))
df3 <- createDataFrame(iris)
df4 <- createDataFrame(cars, numPartitions = 2)
} # }