A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://spark.apache.org/docs/latest/api/R/reference/read.text.html below:

Create a SparkDataFrame from a text file. — read.text • SparkR

Create a SparkDataFrame from a text file.

read.text.Rd

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.

Usage
read.text(path, ...)
Arguments
path

Path of file to read. A vector of multiple paths is allowed.

...

additional external data source specific named properties. You can find the text-specific options for reading text files in https://spark.apache.org/docs/latest/sql-data-sources-text.html#data-source-optionData Source Option in the version you use.

Value

SparkDataFrame

Details

Each line in the text file is a new row in the resulting SparkDataFrame.

Note

read.text since 1.6.1

Examples
if (FALSE) { # \dontrun{
sparkR.session()
path <- "path/to/file.txt"
df <- read.text(path)
} # }
On this page

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4