Create a SparkDataFrame from a SparkSQL table or view
tableToDF.Rd
Returns the specified table or view as a SparkDataFrame. The table or view must already exist or have already been registered in the SparkSession.
Examples
if (FALSE) { # \dontrun{
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
createOrReplaceTempView(df, "table")
new_df <- tableToDF("table")
} # }