powered by
Loads a JSON file (JSON Lines text format or newline-delimited JSON ), returning the result as a SparkDataFrame It goes through the entire dataset once to determine the schema.
# S3 method for default read.json(path, ...)# S3 method for default jsonFile(path)
# S3 method for default jsonFile(path)
Path of file to read. A vector of multiple paths is allowed.
additional external data source specific named properties.
SparkDataFrame
# NOT RUN { sparkR.session() path <- "path/to/file.json" df <- read.json(path) df <- jsonFile(path) # }
Run the code above in your browser using DataLab