read.text {SparkR} | R Documentation |
Loads text files and returns a SparkDataFrame whose schema starts with a string column named "value", and followed by partitioned columns if there are any.
## Default S3 method: read.text(path)
path |
Path of file to read. A vector of multiple paths is allowed. |
Each line in the text file is a new row in the resulting SparkDataFrame.
SparkDataFrame
read.text since 1.6.1
## Not run:
##D sparkR.session()
##D path <- "path/to/file.txt"
##D df <- read.text(path)
## End(Not run)