tableToDF {SparkR} | R Documentation |
Returns the specified Table as a SparkDataFrame. The Table must have already been registered in the SparkSession.
tableToDF(tableName)
tableName |
The SparkSQL Table to convert to a SparkDataFrame. |
SparkDataFrame
tableToDF since 2.0.0
## Not run: sparkR.session() path <- "path/to/file.json" df <- read.json(path) createOrReplaceTempView(df, "table") new_df <- tableToDF("table") ## End(Not run)