Description Usage Arguments Details Value Note Examples
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. The text files must be encoded as UTF-8.
1 |
path |
Path of file to read. A vector of multiple paths is allowed. |
... |
additional external data source specific named properties. |
Each line in the text file is a new row in the resulting SparkDataFrame.
SparkDataFrame
read.text since 1.6.1
1 2 3 4 5 6 | ## Not run:
sparkR.session()
path <- "path/to/file.txt"
df <- read.text(path)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.