| read.df {SparkR} | R Documentation | 
Returns the dataset in a data source as a DataFrame
read.df(sqlContext, path = NULL, source = NULL, schema = NULL, ...)
| sqlContext | SQLContext to use | 
| path | The path of files to load | 
| source | the name of external data source | 
The data source is specified by the 'source' and a set of options(...). If 'source' is not specified, the default data source configured by "spark.sql.sources.default" will be used.
DataFrame
## Not run: 
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D df <- read.df(sqlContext, "path/to/file.json", source = "json")
## End(Not run)