http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/read.df.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/read.df.html b/site/docs/2.1.3/api/R/read.df.html new file mode 100644 index 0000000..2ab7315 --- /dev/null +++ b/site/docs/2.1.3/api/R/read.df.html @@ -0,0 +1,97 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Load a SparkDataFrame</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for read.df {SparkR}"><tr><td>read.df {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Load a SparkDataFrame</h2> + +<h3>Description</h3> + +<p>Returns the dataset in a data source as a SparkDataFrame +</p> + + +<h3>Usage</h3> + +<pre> +## Default S3 method: +read.df(path = NULL, source = NULL, schema = NULL, + na.strings = "NA", ...) + +## Default S3 method: +loadDF(path = NULL, source = NULL, schema = NULL, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>path</code></td> +<td> +<p>The path of files to load</p> +</td></tr> +<tr valign="top"><td><code>source</code></td> +<td> +<p>The name of external data source</p> +</td></tr> +<tr valign="top"><td><code>schema</code></td> +<td> +<p>The data schema defined in structType</p> +</td></tr> +<tr valign="top"><td><code>na.strings</code></td> +<td> +<p>Default string value for NA when source is "csv"</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional external data source specific named properties.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>The data source is specified by the <code>source</code> and a set of options(...). +If <code>source</code> is not specified, the default data source configured by +"spark.sql.sources.default" will be used. <br /> +Similar to R read.csv, when <code>source</code> is "csv", by default, a value of "NA" will be +interpreted as NA. +</p> + + +<h3>Value</h3> + +<p>SparkDataFrame +</p> + + +<h3>Note</h3> + +<p>read.df since 1.4.0 +</p> +<p>loadDF since 1.6.0 +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D df1 <- read.df("path/to/file.json", source = "json") +##D schema <- structType(structField("name", "string"), +##D structField("info", "map<string,double>")) +##D df2 <- read.df(mapTypeJsonPath, "json", schema) +##D df3 <- loadDF("data/test_table", "parquet", mergeSchema = "true") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html>
http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/read.jdbc.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/read.jdbc.html b/site/docs/2.1.3/api/R/read.jdbc.html new file mode 100644 index 0000000..de11721 --- /dev/null +++ b/site/docs/2.1.3/api/R/read.jdbc.html @@ -0,0 +1,105 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create a SparkDataFrame representing the database table...</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for read.jdbc {SparkR}"><tr><td>read.jdbc {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Create a SparkDataFrame representing the database table accessible via JDBC URL</h2> + +<h3>Description</h3> + +<p>Additional JDBC database connection properties can be set (...) +</p> + + +<h3>Usage</h3> + +<pre> +read.jdbc(url, tableName, partitionColumn = NULL, lowerBound = NULL, + upperBound = NULL, numPartitions = 0L, predicates = list(), ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>url</code></td> +<td> +<p>JDBC database url of the form <code>jdbc:subprotocol:subname</code></p> +</td></tr> +<tr valign="top"><td><code>tableName</code></td> +<td> +<p>the name of the table in the external database</p> +</td></tr> +<tr valign="top"><td><code>partitionColumn</code></td> +<td> +<p>the name of a column of integral type that will be used for partitioning</p> +</td></tr> +<tr valign="top"><td><code>lowerBound</code></td> +<td> +<p>the minimum value of <code>partitionColumn</code> used to decide partition stride</p> +</td></tr> +<tr valign="top"><td><code>upperBound</code></td> +<td> +<p>the maximum value of <code>partitionColumn</code> used to decide partition stride</p> +</td></tr> +<tr valign="top"><td><code>numPartitions</code></td> +<td> +<p>the number of partitions, This, along with <code>lowerBound</code> (inclusive), +<code>upperBound</code> (exclusive), form partition strides for generated WHERE +clause expressions used to split the column <code>partitionColumn</code> evenly. +This defaults to SparkContext.defaultParallelism when unset.</p> +</td></tr> +<tr valign="top"><td><code>predicates</code></td> +<td> +<p>a list of conditions in the where clause; each one defines one partition</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional JDBC database connection named properties.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>Only one of partitionColumn or predicates should be set. Partitions of the table will be +retrieved in parallel based on the <code>numPartitions</code> or by the predicates. +</p> +<p>Don't create too many partitions in parallel on a large cluster; otherwise Spark might crash +your external database systems. +</p> + + +<h3>Value</h3> + +<p>SparkDataFrame +</p> + + +<h3>Note</h3> + +<p>read.jdbc since 2.0.0 +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D jdbcUrl <- "jdbc:mysql://localhost:3306/databasename" +##D df <- read.jdbc(jdbcUrl, "table", predicates = list("field<=123"), user = "username") +##D df2 <- read.jdbc(jdbcUrl, "table2", partitionColumn = "index", lowerBound = 0, +##D upperBound = 10000, user = "username", password = "password") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/read.json.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/read.json.html b/site/docs/2.1.3/api/R/read.json.html new file mode 100644 index 0000000..46c84dd --- /dev/null +++ b/site/docs/2.1.3/api/R/read.json.html @@ -0,0 +1,74 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create a SparkDataFrame from a JSON file.</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for read.json {SparkR}"><tr><td>read.json {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Create a SparkDataFrame from a JSON file.</h2> + +<h3>Description</h3> + +<p>Loads a JSON file (<a href="http://jsonlines.org/">JSON Lines text format or newline-delimited JSON</a> +), returning the result as a SparkDataFrame +It goes through the entire dataset once to determine the schema. +</p> + + +<h3>Usage</h3> + +<pre> +## Default S3 method: +read.json(path, ...) + +## Default S3 method: +jsonFile(path) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>path</code></td> +<td> +<p>Path of file to read. A vector of multiple paths is allowed.</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional external data source specific named properties.</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>SparkDataFrame +</p> + + +<h3>Note</h3> + +<p>read.json since 1.6.0 +</p> +<p>jsonFile since 1.4.0 +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D path <- "path/to/file.json" +##D df <- read.json(path) +##D df <- jsonFile(path) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/read.ml.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/read.ml.html b/site/docs/2.1.3/api/R/read.ml.html new file mode 100644 index 0000000..3e1309b --- /dev/null +++ b/site/docs/2.1.3/api/R/read.ml.html @@ -0,0 +1,66 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Load a fitted MLlib model from the input path.</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for read.ml {SparkR}"><tr><td>read.ml {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Load a fitted MLlib model from the input path.</h2> + +<h3>Description</h3> + +<p>Load a fitted MLlib model from the input path. +</p> + + +<h3>Usage</h3> + +<pre> +read.ml(path) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>path</code></td> +<td> +<p>path of the model to read.</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A fitted MLlib model. +</p> + + +<h3>Note</h3> + +<p>read.ml since 2.0.0 +</p> + + +<h3>See Also</h3> + +<p><a href="write.ml.html">write.ml</a> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D path <- "path/to/model" +##D model <- read.ml(path) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/read.orc.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/read.orc.html b/site/docs/2.1.3/api/R/read.orc.html new file mode 100644 index 0000000..3e5ae1a --- /dev/null +++ b/site/docs/2.1.3/api/R/read.orc.html @@ -0,0 +1,49 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create a SparkDataFrame from an ORC file.</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for read.orc {SparkR}"><tr><td>read.orc {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Create a SparkDataFrame from an ORC file.</h2> + +<h3>Description</h3> + +<p>Loads an ORC file, returning the result as a SparkDataFrame. +</p> + + +<h3>Usage</h3> + +<pre> +read.orc(path, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>path</code></td> +<td> +<p>Path of file to read.</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional external data source specific named properties.</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>SparkDataFrame +</p> + + +<h3>Note</h3> + +<p>read.orc since 2.0.0 +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/read.parquet.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/read.parquet.html b/site/docs/2.1.3/api/R/read.parquet.html new file mode 100644 index 0000000..ca274f5 --- /dev/null +++ b/site/docs/2.1.3/api/R/read.parquet.html @@ -0,0 +1,55 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create a SparkDataFrame from a Parquet file.</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for read.parquet {SparkR}"><tr><td>read.parquet {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Create a SparkDataFrame from a Parquet file.</h2> + +<h3>Description</h3> + +<p>Loads a Parquet file, returning the result as a SparkDataFrame. +</p> + + +<h3>Usage</h3> + +<pre> +## Default S3 method: +read.parquet(path, ...) + +## Default S3 method: +parquetFile(...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>path</code></td> +<td> +<p>path of file to read. A vector of multiple paths is allowed.</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>argument(s) passed to the method.</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>SparkDataFrame +</p> + + +<h3>Note</h3> + +<p>read.parquet since 1.6.0 +</p> +<p>parquetFile since 1.4.0 +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/read.text.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/read.text.html b/site/docs/2.1.3/api/R/read.text.html new file mode 100644 index 0000000..a1ec563 --- /dev/null +++ b/site/docs/2.1.3/api/R/read.text.html @@ -0,0 +1,74 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create a SparkDataFrame from a text file.</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for read.text {SparkR}"><tr><td>read.text {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Create a SparkDataFrame from a text file.</h2> + +<h3>Description</h3> + +<p>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. +</p> + + +<h3>Usage</h3> + +<pre> +## Default S3 method: +read.text(path, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>path</code></td> +<td> +<p>Path of file to read. A vector of multiple paths is allowed.</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional external data source specific named properties.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>Each line in the text file is a new row in the resulting SparkDataFrame. +</p> + + +<h3>Value</h3> + +<p>SparkDataFrame +</p> + + +<h3>Note</h3> + +<p>read.text since 1.6.1 +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D path <- "path/to/file.txt" +##D df <- read.text(path) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/regexp_extract.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/regexp_extract.html b/site/docs/2.1.3/api/R/regexp_extract.html new file mode 100644 index 0000000..5216731 --- /dev/null +++ b/site/docs/2.1.3/api/R/regexp_extract.html @@ -0,0 +1,82 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: regexp_extract</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for regexp_extract {SparkR}"><tr><td>regexp_extract {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>regexp_extract</h2> + +<h3>Description</h3> + +<p>Extract a specific <code>idx</code> group identified by a Java regex, from the specified string column. +If the regex did not match, or the specified group did not match, an empty string is returned. +</p> + + +<h3>Usage</h3> + +<pre> +regexp_extract(x, pattern, idx) + +## S4 method for signature 'Column,character,numeric' +regexp_extract(x, pattern, idx) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>a string Column.</p> +</td></tr> +<tr valign="top"><td><code>pattern</code></td> +<td> +<p>a regular expression.</p> +</td></tr> +<tr valign="top"><td><code>idx</code></td> +<td> +<p>a group index.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>regexp_extract since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other string_funcs: <code><a href="ascii.html">ascii</a></code>, +<code><a href="base64.html">base64</a></code>, <code><a href="concat_ws.html">concat_ws</a></code>, +<code><a href="concat.html">concat</a></code>, <code><a href="decode.html">decode</a></code>, +<code><a href="encode.html">encode</a></code>, <code><a href="format_number.html">format_number</a></code>, +<code><a href="format_string.html">format_string</a></code>, <code><a href="initcap.html">initcap</a></code>, +<code><a href="instr.html">instr</a></code>, <code><a href="length.html">length</a></code>, +<code><a href="levenshtein.html">levenshtein</a></code>, <code><a href="locate.html">locate</a></code>, +<code><a href="lower.html">lower</a></code>, <code><a href="lpad.html">lpad</a></code>, +<code><a href="ltrim.html">ltrim</a></code>, <code><a href="regexp_replace.html">regexp_replace</a></code>, +<code><a href="reverse.html">reverse</a></code>, <code><a href="rpad.html">rpad</a></code>, +<code><a href="rtrim.html">rtrim</a></code>, <code><a href="soundex.html">soundex</a></code>, +<code><a href="substring_index.html">substring_index</a></code>, <code><a href="translate.html">translate</a></code>, +<code><a href="trim.html">trim</a></code>, <code><a href="unbase64.html">unbase64</a></code>, +<code><a href="upper.html">upper</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: regexp_extract(df$c, '(\d+)-(\d+)', 1) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/regexp_replace.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/regexp_replace.html b/site/docs/2.1.3/api/R/regexp_replace.html new file mode 100644 index 0000000..dfb5bdb --- /dev/null +++ b/site/docs/2.1.3/api/R/regexp_replace.html @@ -0,0 +1,81 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: regexp_replace</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for regexp_replace {SparkR}"><tr><td>regexp_replace {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>regexp_replace</h2> + +<h3>Description</h3> + +<p>Replace all substrings of the specified string value that match regexp with rep. +</p> + + +<h3>Usage</h3> + +<pre> +regexp_replace(x, pattern, replacement) + +## S4 method for signature 'Column,character,character' +regexp_replace(x, pattern, replacement) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>a string Column.</p> +</td></tr> +<tr valign="top"><td><code>pattern</code></td> +<td> +<p>a regular expression.</p> +</td></tr> +<tr valign="top"><td><code>replacement</code></td> +<td> +<p>a character string that a matched <code>pattern</code> is replaced with.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>regexp_replace since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other string_funcs: <code><a href="ascii.html">ascii</a></code>, +<code><a href="base64.html">base64</a></code>, <code><a href="concat_ws.html">concat_ws</a></code>, +<code><a href="concat.html">concat</a></code>, <code><a href="decode.html">decode</a></code>, +<code><a href="encode.html">encode</a></code>, <code><a href="format_number.html">format_number</a></code>, +<code><a href="format_string.html">format_string</a></code>, <code><a href="initcap.html">initcap</a></code>, +<code><a href="instr.html">instr</a></code>, <code><a href="length.html">length</a></code>, +<code><a href="levenshtein.html">levenshtein</a></code>, <code><a href="locate.html">locate</a></code>, +<code><a href="lower.html">lower</a></code>, <code><a href="lpad.html">lpad</a></code>, +<code><a href="ltrim.html">ltrim</a></code>, <code><a href="regexp_extract.html">regexp_extract</a></code>, +<code><a href="reverse.html">reverse</a></code>, <code><a href="rpad.html">rpad</a></code>, +<code><a href="rtrim.html">rtrim</a></code>, <code><a href="soundex.html">soundex</a></code>, +<code><a href="substring_index.html">substring_index</a></code>, <code><a href="translate.html">translate</a></code>, +<code><a href="trim.html">trim</a></code>, <code><a href="unbase64.html">unbase64</a></code>, +<code><a href="upper.html">upper</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: regexp_replace(df$c, '(\\d+)', '--') +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/registerTempTable-deprecated.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/registerTempTable-deprecated.html b/site/docs/2.1.3/api/R/registerTempTable-deprecated.html new file mode 100644 index 0000000..d68c76e --- /dev/null +++ b/site/docs/2.1.3/api/R/registerTempTable-deprecated.html @@ -0,0 +1,106 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: (Deprecated) Register Temporary Table</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for registerTempTable {SparkR}"><tr><td>registerTempTable {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>(Deprecated) Register Temporary Table</h2> + +<h3>Description</h3> + +<p>Registers a SparkDataFrame as a Temporary Table in the SparkSession +</p> + + +<h3>Usage</h3> + +<pre> +registerTempTable(x, tableName) + +## S4 method for signature 'SparkDataFrame,character' +registerTempTable(x, tableName) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkDataFrame</p> +</td></tr> +<tr valign="top"><td><code>tableName</code></td> +<td> +<p>A character vector containing the name of the table</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>registerTempTable since 1.4.0 +</p> + + +<h3>See Also</h3> + +<p><a href="createOrReplaceTempView.html">createOrReplaceTempView</a> +</p> +<p>Other SparkDataFrame functions: <code><a href="SparkDataFrame.html">SparkDataFrame-class</a></code>, +<code><a href="summarize.html">agg</a></code>, <code><a href="arrange.html">arrange</a></code>, +<code><a href="as.data.frame.html">as.data.frame</a></code>, <code><a href="attach.html">attach</a></code>, +<code><a href="cache.html">cache</a></code>, <code><a href="coalesce.html">coalesce</a></code>, +<code><a href="collect.html">collect</a></code>, <code><a href="columns.html">colnames</a></code>, +<code><a href="coltypes.html">coltypes</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="crossJoin.html">crossJoin</a></code>, <code><a href="dapplyCollect.html">dapplyCollect</a></code>, +<code><a href="dapply.html">dapply</a></code>, <code><a href="summary.html">describe</a></code>, +<code><a href="dim.html">dim</a></code>, <code><a href="distinct.html">distinct</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, <code><a href="nafunctions.html">dropna</a></code>, +<code><a href="drop.html">drop</a></code>, <code><a href="dtypes.html">dtypes</a></code>, +<code><a href="except.html">except</a></code>, <code><a href="explain.html">explain</a></code>, +<code><a href="filter.html">filter</a></code>, <code><a href="first.html">first</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, <code><a href="gapply.html">gapply</a></code>, +<code><a href="getNumPartitions.html">getNumPartitions</a></code>, <code><a href="groupBy.html">group_by</a></code>, +<code><a href="head.html">head</a></code>, <code><a href="histogram.html">histogram</a></code>, +<code><a href="insertInto.html">insertInto</a></code>, <code><a href="intersect.html">intersect</a></code>, +<code><a href="isLocal.html">isLocal</a></code>, <code><a href="join.html">join</a></code>, +<code><a href="limit.html">limit</a></code>, <code><a href="merge.html">merge</a></code>, +<code><a href="mutate.html">mutate</a></code>, <code><a href="ncol.html">ncol</a></code>, +<code><a href="nrow.html">nrow</a></code>, <code><a href="persist.html">persist</a></code>, +<code><a href="printSchema.html">printSchema</a></code>, <code><a href="randomSplit.html">randomSplit</a></code>, +<code><a href="rbind.html">rbind</a></code>, <code><a href="rename.html">rename</a></code>, +<code><a href="repartition.html">repartition</a></code>, <code><a href="sample.html">sample</a></code>, +<code><a href="saveAsTable.html">saveAsTable</a></code>, <code><a href="schema.html">schema</a></code>, +<code><a href="selectExpr.html">selectExpr</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="showDF.html">showDF</a></code>, <code><a href="show.html">show</a></code>, +<code><a href="storageLevel.html">storageLevel</a></code>, <code><a href="str.html">str</a></code>, +<code><a href="subset.html">subset</a></code>, <code><a href="take.html">take</a></code>, +<code><a href="union.html">union</a></code>, <code><a href="unpersist.html">unpersist</a></code>, +<code><a href="withColumn.html">withColumn</a></code>, <code><a href="with.html">with</a></code>, +<code><a href="write.df.html">write.df</a></code>, <code><a href="write.jdbc.html">write.jdbc</a></code>, +<code><a href="write.json.html">write.json</a></code>, <code><a href="write.orc.html">write.orc</a></code>, +<code><a href="write.parquet.html">write.parquet</a></code>, <code><a href="write.text.html">write.text</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D path <- "path/to/file.json" +##D df <- read.json(path) +##D registerTempTable(df, "json_df") +##D new_df <- sql("SELECT * FROM json_df") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/rename.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/rename.html b/site/docs/2.1.3/api/R/rename.html new file mode 100644 index 0000000..07f0462 --- /dev/null +++ b/site/docs/2.1.3/api/R/rename.html @@ -0,0 +1,133 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: rename</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for rename {SparkR}"><tr><td>rename {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>rename</h2> + +<h3>Description</h3> + +<p>Rename an existing column in a SparkDataFrame. +</p> + + +<h3>Usage</h3> + +<pre> +rename(x, ...) + +withColumnRenamed(x, existingCol, newCol) + +## S4 method for signature 'SparkDataFrame,character,character' +withColumnRenamed(x, existingCol, + newCol) + +## S4 method for signature 'SparkDataFrame' +rename(x, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkDataFrame</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>A named pair of the form new_column_name = existing_column</p> +</td></tr> +<tr valign="top"><td><code>existingCol</code></td> +<td> +<p>The name of the column you want to change.</p> +</td></tr> +<tr valign="top"><td><code>newCol</code></td> +<td> +<p>The new column name.</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A SparkDataFrame with the column name changed. +</p> + + +<h3>Note</h3> + +<p>withColumnRenamed since 1.4.0 +</p> +<p>rename since 1.4.0 +</p> + + +<h3>See Also</h3> + +<p><a href="mutate.html">mutate</a> +</p> +<p>Other SparkDataFrame functions: <code><a href="SparkDataFrame.html">SparkDataFrame-class</a></code>, +<code><a href="summarize.html">agg</a></code>, <code><a href="arrange.html">arrange</a></code>, +<code><a href="as.data.frame.html">as.data.frame</a></code>, <code><a href="attach.html">attach</a></code>, +<code><a href="cache.html">cache</a></code>, <code><a href="coalesce.html">coalesce</a></code>, +<code><a href="collect.html">collect</a></code>, <code><a href="columns.html">colnames</a></code>, +<code><a href="coltypes.html">coltypes</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="crossJoin.html">crossJoin</a></code>, <code><a href="dapplyCollect.html">dapplyCollect</a></code>, +<code><a href="dapply.html">dapply</a></code>, <code><a href="summary.html">describe</a></code>, +<code><a href="dim.html">dim</a></code>, <code><a href="distinct.html">distinct</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, <code><a href="nafunctions.html">dropna</a></code>, +<code><a href="drop.html">drop</a></code>, <code><a href="dtypes.html">dtypes</a></code>, +<code><a href="except.html">except</a></code>, <code><a href="explain.html">explain</a></code>, +<code><a href="filter.html">filter</a></code>, <code><a href="first.html">first</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, <code><a href="gapply.html">gapply</a></code>, +<code><a href="getNumPartitions.html">getNumPartitions</a></code>, <code><a href="groupBy.html">group_by</a></code>, +<code><a href="head.html">head</a></code>, <code><a href="histogram.html">histogram</a></code>, +<code><a href="insertInto.html">insertInto</a></code>, <code><a href="intersect.html">intersect</a></code>, +<code><a href="isLocal.html">isLocal</a></code>, <code><a href="join.html">join</a></code>, +<code><a href="limit.html">limit</a></code>, <code><a href="merge.html">merge</a></code>, +<code><a href="mutate.html">mutate</a></code>, <code><a href="ncol.html">ncol</a></code>, +<code><a href="nrow.html">nrow</a></code>, <code><a href="persist.html">persist</a></code>, +<code><a href="printSchema.html">printSchema</a></code>, <code><a href="randomSplit.html">randomSplit</a></code>, +<code><a href="rbind.html">rbind</a></code>, <code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="repartition.html">repartition</a></code>, <code><a href="sample.html">sample</a></code>, +<code><a href="saveAsTable.html">saveAsTable</a></code>, <code><a href="schema.html">schema</a></code>, +<code><a href="selectExpr.html">selectExpr</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="showDF.html">showDF</a></code>, <code><a href="show.html">show</a></code>, +<code><a href="storageLevel.html">storageLevel</a></code>, <code><a href="str.html">str</a></code>, +<code><a href="subset.html">subset</a></code>, <code><a href="take.html">take</a></code>, +<code><a href="union.html">union</a></code>, <code><a href="unpersist.html">unpersist</a></code>, +<code><a href="withColumn.html">withColumn</a></code>, <code><a href="with.html">with</a></code>, +<code><a href="write.df.html">write.df</a></code>, <code><a href="write.jdbc.html">write.jdbc</a></code>, +<code><a href="write.json.html">write.json</a></code>, <code><a href="write.orc.html">write.orc</a></code>, +<code><a href="write.parquet.html">write.parquet</a></code>, <code><a href="write.text.html">write.text</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D path <- "path/to/file.json" +##D df <- read.json(path) +##D newDF <- withColumnRenamed(df, "col1", "newCol1") +## End(Not run) +## Not run: +##D sparkR.session() +##D path <- "path/to/file.json" +##D df <- read.json(path) +##D newDF <- rename(df, col1 = df$newCol1) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/repartition.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/repartition.html b/site/docs/2.1.3/api/R/repartition.html new file mode 100644 index 0000000..cbf2c78 --- /dev/null +++ b/site/docs/2.1.3/api/R/repartition.html @@ -0,0 +1,131 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Repartition</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for repartition {SparkR}"><tr><td>repartition {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Repartition</h2> + +<h3>Description</h3> + +<p>The following options for repartition are possible: +</p> + +<ul> +<li><p>1. Return a new SparkDataFrame that has exactly <code>numPartitions</code>. +</p> +</li> +<li><p>2. Return a new SparkDataFrame hash partitioned by +the given columns into <code>numPartitions</code>. +</p> +</li> +<li><p>3. Return a new SparkDataFrame hash partitioned by the given column(s), +using <code>spark.sql.shuffle.partitions</code> as number of partitions. +</p> +</li></ul> + + + +<h3>Usage</h3> + +<pre> +repartition(x, ...) + +## S4 method for signature 'SparkDataFrame' +repartition(x, numPartitions = NULL, col = NULL, + ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>a SparkDataFrame.</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional column(s) to be used in the partitioning.</p> +</td></tr> +<tr valign="top"><td><code>numPartitions</code></td> +<td> +<p>the number of partitions to use.</p> +</td></tr> +<tr valign="top"><td><code>col</code></td> +<td> +<p>the column by which the partitioning will be performed.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>repartition since 1.4.0 +</p> + + +<h3>See Also</h3> + +<p><a href="coalesce.html">coalesce</a> +</p> +<p>Other SparkDataFrame functions: <code><a href="SparkDataFrame.html">SparkDataFrame-class</a></code>, +<code><a href="summarize.html">agg</a></code>, <code><a href="arrange.html">arrange</a></code>, +<code><a href="as.data.frame.html">as.data.frame</a></code>, <code><a href="attach.html">attach</a></code>, +<code><a href="cache.html">cache</a></code>, <code><a href="coalesce.html">coalesce</a></code>, +<code><a href="collect.html">collect</a></code>, <code><a href="columns.html">colnames</a></code>, +<code><a href="coltypes.html">coltypes</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="crossJoin.html">crossJoin</a></code>, <code><a href="dapplyCollect.html">dapplyCollect</a></code>, +<code><a href="dapply.html">dapply</a></code>, <code><a href="summary.html">describe</a></code>, +<code><a href="dim.html">dim</a></code>, <code><a href="distinct.html">distinct</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, <code><a href="nafunctions.html">dropna</a></code>, +<code><a href="drop.html">drop</a></code>, <code><a href="dtypes.html">dtypes</a></code>, +<code><a href="except.html">except</a></code>, <code><a href="explain.html">explain</a></code>, +<code><a href="filter.html">filter</a></code>, <code><a href="first.html">first</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, <code><a href="gapply.html">gapply</a></code>, +<code><a href="getNumPartitions.html">getNumPartitions</a></code>, <code><a href="groupBy.html">group_by</a></code>, +<code><a href="head.html">head</a></code>, <code><a href="histogram.html">histogram</a></code>, +<code><a href="insertInto.html">insertInto</a></code>, <code><a href="intersect.html">intersect</a></code>, +<code><a href="isLocal.html">isLocal</a></code>, <code><a href="join.html">join</a></code>, +<code><a href="limit.html">limit</a></code>, <code><a href="merge.html">merge</a></code>, +<code><a href="mutate.html">mutate</a></code>, <code><a href="ncol.html">ncol</a></code>, +<code><a href="nrow.html">nrow</a></code>, <code><a href="persist.html">persist</a></code>, +<code><a href="printSchema.html">printSchema</a></code>, <code><a href="randomSplit.html">randomSplit</a></code>, +<code><a href="rbind.html">rbind</a></code>, <code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="rename.html">rename</a></code>, <code><a href="sample.html">sample</a></code>, +<code><a href="saveAsTable.html">saveAsTable</a></code>, <code><a href="schema.html">schema</a></code>, +<code><a href="selectExpr.html">selectExpr</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="showDF.html">showDF</a></code>, <code><a href="show.html">show</a></code>, +<code><a href="storageLevel.html">storageLevel</a></code>, <code><a href="str.html">str</a></code>, +<code><a href="subset.html">subset</a></code>, <code><a href="take.html">take</a></code>, +<code><a href="union.html">union</a></code>, <code><a href="unpersist.html">unpersist</a></code>, +<code><a href="withColumn.html">withColumn</a></code>, <code><a href="with.html">with</a></code>, +<code><a href="write.df.html">write.df</a></code>, <code><a href="write.jdbc.html">write.jdbc</a></code>, +<code><a href="write.json.html">write.json</a></code>, <code><a href="write.orc.html">write.orc</a></code>, +<code><a href="write.parquet.html">write.parquet</a></code>, <code><a href="write.text.html">write.text</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D path <- "path/to/file.json" +##D df <- read.json(path) +##D newDF <- repartition(df, 2L) +##D newDF <- repartition(df, numPartitions = 2L) +##D newDF <- repartition(df, col = df$"col1", df$"col2") +##D newDF <- repartition(df, 3L, col = df$"col1", df$"col2") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/reverse.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/reverse.html b/site/docs/2.1.3/api/R/reverse.html new file mode 100644 index 0000000..b48ca0b --- /dev/null +++ b/site/docs/2.1.3/api/R/reverse.html @@ -0,0 +1,73 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: reverse</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for reverse {SparkR}"><tr><td>reverse {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>reverse</h2> + +<h3>Description</h3> + +<p>Reverses the string column and returns it as a new string column. +</p> + + +<h3>Usage</h3> + +<pre> +reverse(x) + +## S4 method for signature 'Column' +reverse(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>Column to compute on.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>reverse since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other string_funcs: <code><a href="ascii.html">ascii</a></code>, +<code><a href="base64.html">base64</a></code>, <code><a href="concat_ws.html">concat_ws</a></code>, +<code><a href="concat.html">concat</a></code>, <code><a href="decode.html">decode</a></code>, +<code><a href="encode.html">encode</a></code>, <code><a href="format_number.html">format_number</a></code>, +<code><a href="format_string.html">format_string</a></code>, <code><a href="initcap.html">initcap</a></code>, +<code><a href="instr.html">instr</a></code>, <code><a href="length.html">length</a></code>, +<code><a href="levenshtein.html">levenshtein</a></code>, <code><a href="locate.html">locate</a></code>, +<code><a href="lower.html">lower</a></code>, <code><a href="lpad.html">lpad</a></code>, +<code><a href="ltrim.html">ltrim</a></code>, <code><a href="regexp_extract.html">regexp_extract</a></code>, +<code><a href="regexp_replace.html">regexp_replace</a></code>, <code><a href="rpad.html">rpad</a></code>, +<code><a href="rtrim.html">rtrim</a></code>, <code><a href="soundex.html">soundex</a></code>, +<code><a href="substring_index.html">substring_index</a></code>, <code><a href="translate.html">translate</a></code>, +<code><a href="trim.html">trim</a></code>, <code><a href="unbase64.html">unbase64</a></code>, +<code><a href="upper.html">upper</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: reverse(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/rint.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/rint.html b/site/docs/2.1.3/api/R/rint.html new file mode 100644 index 0000000..7848f10 --- /dev/null +++ b/site/docs/2.1.3/api/R/rint.html @@ -0,0 +1,80 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: rint</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for rint {SparkR}"><tr><td>rint {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>rint</h2> + +<h3>Description</h3> + +<p>Returns the double value that is closest in value to the argument and +is equal to a mathematical integer. +</p> + + +<h3>Usage</h3> + +<pre> +rint(x) + +## S4 method for signature 'Column' +rint(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>Column to compute on.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>rint since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other math_funcs: <code><a href="acos.html">acos</a></code>, <code><a href="asin.html">asin</a></code>, +<code><a href="atan2.html">atan2</a></code>, <code><a href="atan.html">atan</a></code>, +<code><a href="bin.html">bin</a></code>, <code><a href="bround.html">bround</a></code>, +<code><a href="cbrt.html">cbrt</a></code>, <code><a href="ceil.html">ceil</a></code>, +<code><a href="conv.html">conv</a></code>, <code><a href="corr.html">corr</a></code>, +<code><a href="cosh.html">cosh</a></code>, <code><a href="cos.html">cos</a></code>, +<code><a href="covar_pop.html">covar_pop</a></code>, <code><a href="cov.html">cov</a></code>, +<code><a href="expm1.html">expm1</a></code>, <code><a href="exp.html">exp</a></code>, +<code><a href="factorial.html">factorial</a></code>, <code><a href="floor.html">floor</a></code>, +<code><a href="hex.html">hex</a></code>, <code><a href="hypot.html">hypot</a></code>, +<code><a href="log10.html">log10</a></code>, <code><a href="log1p.html">log1p</a></code>, +<code><a href="log2.html">log2</a></code>, <code><a href="log.html">log</a></code>, +<code><a href="pmod.html">pmod</a></code>, <code><a href="round.html">round</a></code>, +<code><a href="shiftLeft.html">shiftLeft</a></code>, +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>, +<code><a href="shiftRight.html">shiftRight</a></code>, <code><a href="sign.html">signum</a></code>, +<code><a href="sinh.html">sinh</a></code>, <code><a href="sin.html">sin</a></code>, +<code><a href="sqrt.html">sqrt</a></code>, <code><a href="tanh.html">tanh</a></code>, +<code><a href="tan.html">tan</a></code>, <code><a href="toDegrees.html">toDegrees</a></code>, +<code><a href="toRadians.html">toRadians</a></code>, <code><a href="unhex.html">unhex</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: rint(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/round.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/round.html b/site/docs/2.1.3/api/R/round.html new file mode 100644 index 0000000..af9f811 --- /dev/null +++ b/site/docs/2.1.3/api/R/round.html @@ -0,0 +1,77 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: round</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for round {SparkR}"><tr><td>round {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>round</h2> + +<h3>Description</h3> + +<p>Returns the value of the column <code>e</code> rounded to 0 decimal places using HALF_UP rounding mode. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +round(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>Column to compute on.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>round since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other math_funcs: <code><a href="acos.html">acos</a></code>, <code><a href="asin.html">asin</a></code>, +<code><a href="atan2.html">atan2</a></code>, <code><a href="atan.html">atan</a></code>, +<code><a href="bin.html">bin</a></code>, <code><a href="bround.html">bround</a></code>, +<code><a href="cbrt.html">cbrt</a></code>, <code><a href="ceil.html">ceil</a></code>, +<code><a href="conv.html">conv</a></code>, <code><a href="corr.html">corr</a></code>, +<code><a href="cosh.html">cosh</a></code>, <code><a href="cos.html">cos</a></code>, +<code><a href="covar_pop.html">covar_pop</a></code>, <code><a href="cov.html">cov</a></code>, +<code><a href="expm1.html">expm1</a></code>, <code><a href="exp.html">exp</a></code>, +<code><a href="factorial.html">factorial</a></code>, <code><a href="floor.html">floor</a></code>, +<code><a href="hex.html">hex</a></code>, <code><a href="hypot.html">hypot</a></code>, +<code><a href="log10.html">log10</a></code>, <code><a href="log1p.html">log1p</a></code>, +<code><a href="log2.html">log2</a></code>, <code><a href="log.html">log</a></code>, +<code><a href="pmod.html">pmod</a></code>, <code><a href="rint.html">rint</a></code>, +<code><a href="shiftLeft.html">shiftLeft</a></code>, +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>, +<code><a href="shiftRight.html">shiftRight</a></code>, <code><a href="sign.html">signum</a></code>, +<code><a href="sinh.html">sinh</a></code>, <code><a href="sin.html">sin</a></code>, +<code><a href="sqrt.html">sqrt</a></code>, <code><a href="tanh.html">tanh</a></code>, +<code><a href="tan.html">tan</a></code>, <code><a href="toDegrees.html">toDegrees</a></code>, +<code><a href="toRadians.html">toRadians</a></code>, <code><a href="unhex.html">unhex</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: round(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/row_number.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/row_number.html b/site/docs/2.1.3/api/R/row_number.html new file mode 100644 index 0000000..1d37d1d --- /dev/null +++ b/site/docs/2.1.3/api/R/row_number.html @@ -0,0 +1,73 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: row_number</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for row_number {SparkR}"><tr><td>row_number {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>row_number</h2> + +<h3>Description</h3> + +<p>Window function: returns a sequential number starting at 1 within a window partition. +</p> + + +<h3>Usage</h3> + +<pre> +row_number(x = "missing") + +## S4 method for signature 'missing' +row_number() +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>empty. Should be used with no argument.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>This is equivalent to the ROW_NUMBER function in SQL. +</p> + + +<h3>Note</h3> + +<p>row_number since 1.6.0 +</p> + + +<h3>See Also</h3> + +<p>Other window_funcs: <code><a href="cume_dist.html">cume_dist</a></code>, +<code><a href="dense_rank.html">dense_rank</a></code>, <code><a href="lag.html">lag</a></code>, +<code><a href="lead.html">lead</a></code>, <code><a href="ntile.html">ntile</a></code>, +<code><a href="percent_rank.html">percent_rank</a></code>, <code><a href="rank.html">rank</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D df <- createDataFrame(mtcars) +##D ws <- orderBy(windowPartitionBy("am"), "hp") +##D out <- select(df, over(row_number(), ws), df$hp, df$am) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/rowsBetween.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/rowsBetween.html b/site/docs/2.1.3/api/R/rowsBetween.html new file mode 100644 index 0000000..1388ad7 --- /dev/null +++ b/site/docs/2.1.3/api/R/rowsBetween.html @@ -0,0 +1,87 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: rowsBetween</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for rowsBetween {SparkR}"><tr><td>rowsBetween {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>rowsBetween</h2> + +<h3>Description</h3> + +<p>Defines the frame boundaries, from <code>start</code> (inclusive) to <code>end</code> (inclusive). +</p> + + +<h3>Usage</h3> + +<pre> +rowsBetween(x, start, end) + +## S4 method for signature 'WindowSpec,numeric,numeric' +rowsBetween(x, start, end) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>a WindowSpec</p> +</td></tr> +<tr valign="top"><td><code>start</code></td> +<td> +<p>boundary start, inclusive. +The frame is unbounded if this is the minimum long value.</p> +</td></tr> +<tr valign="top"><td><code>end</code></td> +<td> +<p>boundary end, inclusive. +The frame is unbounded if this is the maximum long value.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>Both <code>start</code> and <code>end</code> are relative positions from the current row. For example, +"0" means "current row", while "-1" means the row before the current row, and "5" means the +fifth row after the current row. +</p> + + +<h3>Value</h3> + +<p>a WindowSpec +</p> + + +<h3>Note</h3> + +<p>rowsBetween since 2.0.0 +</p> + + +<h3>See Also</h3> + +<p>Other windowspec_method: <code><a href="orderBy.html">orderBy</a></code>, +<code><a href="partitionBy.html">partitionBy</a></code>, <code><a href="rangeBetween.html">rangeBetween</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D rowsBetween(ws, 0, 3) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/rpad.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/rpad.html b/site/docs/2.1.3/api/R/rpad.html new file mode 100644 index 0000000..e93e485 --- /dev/null +++ b/site/docs/2.1.3/api/R/rpad.html @@ -0,0 +1,81 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: rpad</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for rpad {SparkR}"><tr><td>rpad {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>rpad</h2> + +<h3>Description</h3> + +<p>Right-padded with pad to a length of len. +</p> + + +<h3>Usage</h3> + +<pre> +rpad(x, len, pad) + +## S4 method for signature 'Column,numeric,character' +rpad(x, len, pad) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>the string Column to be right-padded.</p> +</td></tr> +<tr valign="top"><td><code>len</code></td> +<td> +<p>maximum length of each output result.</p> +</td></tr> +<tr valign="top"><td><code>pad</code></td> +<td> +<p>a character string to be padded with.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>rpad since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other string_funcs: <code><a href="ascii.html">ascii</a></code>, +<code><a href="base64.html">base64</a></code>, <code><a href="concat_ws.html">concat_ws</a></code>, +<code><a href="concat.html">concat</a></code>, <code><a href="decode.html">decode</a></code>, +<code><a href="encode.html">encode</a></code>, <code><a href="format_number.html">format_number</a></code>, +<code><a href="format_string.html">format_string</a></code>, <code><a href="initcap.html">initcap</a></code>, +<code><a href="instr.html">instr</a></code>, <code><a href="length.html">length</a></code>, +<code><a href="levenshtein.html">levenshtein</a></code>, <code><a href="locate.html">locate</a></code>, +<code><a href="lower.html">lower</a></code>, <code><a href="lpad.html">lpad</a></code>, +<code><a href="ltrim.html">ltrim</a></code>, <code><a href="regexp_extract.html">regexp_extract</a></code>, +<code><a href="regexp_replace.html">regexp_replace</a></code>, <code><a href="reverse.html">reverse</a></code>, +<code><a href="rtrim.html">rtrim</a></code>, <code><a href="soundex.html">soundex</a></code>, +<code><a href="substring_index.html">substring_index</a></code>, <code><a href="translate.html">translate</a></code>, +<code><a href="trim.html">trim</a></code>, <code><a href="unbase64.html">unbase64</a></code>, +<code><a href="upper.html">upper</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: rpad(df$c, 6, '#') +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/rtrim.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/rtrim.html b/site/docs/2.1.3/api/R/rtrim.html new file mode 100644 index 0000000..a0ec9cf --- /dev/null +++ b/site/docs/2.1.3/api/R/rtrim.html @@ -0,0 +1,73 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: rtrim</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for rtrim {SparkR}"><tr><td>rtrim {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>rtrim</h2> + +<h3>Description</h3> + +<p>Trim the spaces from right end for the specified string value. +</p> + + +<h3>Usage</h3> + +<pre> +rtrim(x) + +## S4 method for signature 'Column' +rtrim(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>Column to compute on.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>rtrim since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other string_funcs: <code><a href="ascii.html">ascii</a></code>, +<code><a href="base64.html">base64</a></code>, <code><a href="concat_ws.html">concat_ws</a></code>, +<code><a href="concat.html">concat</a></code>, <code><a href="decode.html">decode</a></code>, +<code><a href="encode.html">encode</a></code>, <code><a href="format_number.html">format_number</a></code>, +<code><a href="format_string.html">format_string</a></code>, <code><a href="initcap.html">initcap</a></code>, +<code><a href="instr.html">instr</a></code>, <code><a href="length.html">length</a></code>, +<code><a href="levenshtein.html">levenshtein</a></code>, <code><a href="locate.html">locate</a></code>, +<code><a href="lower.html">lower</a></code>, <code><a href="lpad.html">lpad</a></code>, +<code><a href="ltrim.html">ltrim</a></code>, <code><a href="regexp_extract.html">regexp_extract</a></code>, +<code><a href="regexp_replace.html">regexp_replace</a></code>, <code><a href="reverse.html">reverse</a></code>, +<code><a href="rpad.html">rpad</a></code>, <code><a href="soundex.html">soundex</a></code>, +<code><a href="substring_index.html">substring_index</a></code>, <code><a href="translate.html">translate</a></code>, +<code><a href="trim.html">trim</a></code>, <code><a href="unbase64.html">unbase64</a></code>, +<code><a href="upper.html">upper</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: rtrim(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/sample.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sample.html b/site/docs/2.1.3/api/R/sample.html new file mode 100644 index 0000000..6b6adbb --- /dev/null +++ b/site/docs/2.1.3/api/R/sample.html @@ -0,0 +1,123 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Sample</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for sample {SparkR}"><tr><td>sample {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Sample</h2> + +<h3>Description</h3> + +<p>Return a sampled subset of this SparkDataFrame using a random seed. +Note: this is not guaranteed to provide exactly the fraction specified +of the total count of of the given SparkDataFrame. +</p> + + +<h3>Usage</h3> + +<pre> +sample(x, withReplacement, fraction, seed) + +sample_frac(x, withReplacement, fraction, seed) + +## S4 method for signature 'SparkDataFrame,logical,numeric' +sample(x, withReplacement, fraction, + seed) + +## S4 method for signature 'SparkDataFrame,logical,numeric' +sample_frac(x, withReplacement, + fraction, seed) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkDataFrame</p> +</td></tr> +<tr valign="top"><td><code>withReplacement</code></td> +<td> +<p>Sampling with replacement or not</p> +</td></tr> +<tr valign="top"><td><code>fraction</code></td> +<td> +<p>The (rough) sample target fraction</p> +</td></tr> +<tr valign="top"><td><code>seed</code></td> +<td> +<p>Randomness seed value</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>sample since 1.4.0 +</p> +<p>sample_frac since 1.4.0 +</p> + + +<h3>See Also</h3> + +<p>Other SparkDataFrame functions: <code><a href="SparkDataFrame.html">SparkDataFrame-class</a></code>, +<code><a href="summarize.html">agg</a></code>, <code><a href="arrange.html">arrange</a></code>, +<code><a href="as.data.frame.html">as.data.frame</a></code>, <code><a href="attach.html">attach</a></code>, +<code><a href="cache.html">cache</a></code>, <code><a href="coalesce.html">coalesce</a></code>, +<code><a href="collect.html">collect</a></code>, <code><a href="columns.html">colnames</a></code>, +<code><a href="coltypes.html">coltypes</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="crossJoin.html">crossJoin</a></code>, <code><a href="dapplyCollect.html">dapplyCollect</a></code>, +<code><a href="dapply.html">dapply</a></code>, <code><a href="summary.html">describe</a></code>, +<code><a href="dim.html">dim</a></code>, <code><a href="distinct.html">distinct</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, <code><a href="nafunctions.html">dropna</a></code>, +<code><a href="drop.html">drop</a></code>, <code><a href="dtypes.html">dtypes</a></code>, +<code><a href="except.html">except</a></code>, <code><a href="explain.html">explain</a></code>, +<code><a href="filter.html">filter</a></code>, <code><a href="first.html">first</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, <code><a href="gapply.html">gapply</a></code>, +<code><a href="getNumPartitions.html">getNumPartitions</a></code>, <code><a href="groupBy.html">group_by</a></code>, +<code><a href="head.html">head</a></code>, <code><a href="histogram.html">histogram</a></code>, +<code><a href="insertInto.html">insertInto</a></code>, <code><a href="intersect.html">intersect</a></code>, +<code><a href="isLocal.html">isLocal</a></code>, <code><a href="join.html">join</a></code>, +<code><a href="limit.html">limit</a></code>, <code><a href="merge.html">merge</a></code>, +<code><a href="mutate.html">mutate</a></code>, <code><a href="ncol.html">ncol</a></code>, +<code><a href="nrow.html">nrow</a></code>, <code><a href="persist.html">persist</a></code>, +<code><a href="printSchema.html">printSchema</a></code>, <code><a href="randomSplit.html">randomSplit</a></code>, +<code><a href="rbind.html">rbind</a></code>, <code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="rename.html">rename</a></code>, <code><a href="repartition.html">repartition</a></code>, +<code><a href="saveAsTable.html">saveAsTable</a></code>, <code><a href="schema.html">schema</a></code>, +<code><a href="selectExpr.html">selectExpr</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="showDF.html">showDF</a></code>, <code><a href="show.html">show</a></code>, +<code><a href="storageLevel.html">storageLevel</a></code>, <code><a href="str.html">str</a></code>, +<code><a href="subset.html">subset</a></code>, <code><a href="take.html">take</a></code>, +<code><a href="union.html">union</a></code>, <code><a href="unpersist.html">unpersist</a></code>, +<code><a href="withColumn.html">withColumn</a></code>, <code><a href="with.html">with</a></code>, +<code><a href="write.df.html">write.df</a></code>, <code><a href="write.jdbc.html">write.jdbc</a></code>, +<code><a href="write.json.html">write.json</a></code>, <code><a href="write.orc.html">write.orc</a></code>, +<code><a href="write.parquet.html">write.parquet</a></code>, <code><a href="write.text.html">write.text</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D path <- "path/to/file.json" +##D df <- read.json(path) +##D collect(sample(df, FALSE, 0.5)) +##D collect(sample(df, TRUE, 0.5)) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/sampleBy.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sampleBy.html b/site/docs/2.1.3/api/R/sampleBy.html new file mode 100644 index 0000000..6f99cca --- /dev/null +++ b/site/docs/2.1.3/api/R/sampleBy.html @@ -0,0 +1,86 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Returns a stratified sample without replacement</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for sampleBy {SparkR}"><tr><td>sampleBy {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Returns a stratified sample without replacement</h2> + +<h3>Description</h3> + +<p>Returns a stratified sample without replacement based on the fraction given on each +stratum. +</p> + + +<h3>Usage</h3> + +<pre> +sampleBy(x, col, fractions, seed) + +## S4 method for signature 'SparkDataFrame,character,list,numeric' +sampleBy(x, col, fractions, + seed) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkDataFrame</p> +</td></tr> +<tr valign="top"><td><code>col</code></td> +<td> +<p>column that defines strata</p> +</td></tr> +<tr valign="top"><td><code>fractions</code></td> +<td> +<p>A named list giving sampling fraction for each stratum. If a stratum is +not specified, we treat its fraction as zero.</p> +</td></tr> +<tr valign="top"><td><code>seed</code></td> +<td> +<p>random seed</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A new SparkDataFrame that represents the stratified sample +</p> + + +<h3>Note</h3> + +<p>sampleBy since 1.6.0 +</p> + + +<h3>See Also</h3> + +<p>Other stat functions: <code><a href="approxQuantile.html">approxQuantile</a></code>, +<code><a href="corr.html">corr</a></code>, <code><a href="cov.html">cov</a></code>, +<code><a href="crosstab.html">crosstab</a></code>, <code><a href="freqItems.html">freqItems</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D df <- read.json("/path/to/file.json") +##D sample <- sampleBy(df, "key", fractions, 36) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/saveAsTable.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/saveAsTable.html b/site/docs/2.1.3/api/R/saveAsTable.html new file mode 100644 index 0000000..35c3d02 --- /dev/null +++ b/site/docs/2.1.3/api/R/saveAsTable.html @@ -0,0 +1,131 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Save the contents of the SparkDataFrame to a data source as a...</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for saveAsTable {SparkR}"><tr><td>saveAsTable {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Save the contents of the SparkDataFrame to a data source as a table</h2> + +<h3>Description</h3> + +<p>The data source is specified by the <code>source</code> and a set of options (...). +If <code>source</code> is not specified, the default data source configured by +spark.sql.sources.default will be used. +</p> + + +<h3>Usage</h3> + +<pre> +saveAsTable(df, tableName, source = NULL, mode = "error", ...) + +## S4 method for signature 'SparkDataFrame,character' +saveAsTable(df, tableName, source = NULL, + mode = "error", ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>df</code></td> +<td> +<p>a SparkDataFrame.</p> +</td></tr> +<tr valign="top"><td><code>tableName</code></td> +<td> +<p>a name for the table.</p> +</td></tr> +<tr valign="top"><td><code>source</code></td> +<td> +<p>a name for external data source.</p> +</td></tr> +<tr valign="top"><td><code>mode</code></td> +<td> +<p>one of 'append', 'overwrite', 'error', 'ignore' save mode (it is 'error' by default).</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional option(s) passed to the method.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>Additionally, mode is used to specify the behavior of the save operation when +data already exists in the data source. There are four modes: <br /> +append: Contents of this SparkDataFrame are expected to be appended to existing data. <br /> +overwrite: Existing data is expected to be overwritten by the contents of this +SparkDataFrame. <br /> +error: An exception is expected to be thrown. <br /> +ignore: The save operation is expected to not save the contents of the SparkDataFrame +and to not change the existing data. <br /> +</p> + + +<h3>Note</h3> + +<p>saveAsTable since 1.4.0 +</p> + + +<h3>See Also</h3> + +<p>Other SparkDataFrame functions: <code><a href="SparkDataFrame.html">SparkDataFrame-class</a></code>, +<code><a href="summarize.html">agg</a></code>, <code><a href="arrange.html">arrange</a></code>, +<code><a href="as.data.frame.html">as.data.frame</a></code>, <code><a href="attach.html">attach</a></code>, +<code><a href="cache.html">cache</a></code>, <code><a href="coalesce.html">coalesce</a></code>, +<code><a href="collect.html">collect</a></code>, <code><a href="columns.html">colnames</a></code>, +<code><a href="coltypes.html">coltypes</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="crossJoin.html">crossJoin</a></code>, <code><a href="dapplyCollect.html">dapplyCollect</a></code>, +<code><a href="dapply.html">dapply</a></code>, <code><a href="summary.html">describe</a></code>, +<code><a href="dim.html">dim</a></code>, <code><a href="distinct.html">distinct</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, <code><a href="nafunctions.html">dropna</a></code>, +<code><a href="drop.html">drop</a></code>, <code><a href="dtypes.html">dtypes</a></code>, +<code><a href="except.html">except</a></code>, <code><a href="explain.html">explain</a></code>, +<code><a href="filter.html">filter</a></code>, <code><a href="first.html">first</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, <code><a href="gapply.html">gapply</a></code>, +<code><a href="getNumPartitions.html">getNumPartitions</a></code>, <code><a href="groupBy.html">group_by</a></code>, +<code><a href="head.html">head</a></code>, <code><a href="histogram.html">histogram</a></code>, +<code><a href="insertInto.html">insertInto</a></code>, <code><a href="intersect.html">intersect</a></code>, +<code><a href="isLocal.html">isLocal</a></code>, <code><a href="join.html">join</a></code>, +<code><a href="limit.html">limit</a></code>, <code><a href="merge.html">merge</a></code>, +<code><a href="mutate.html">mutate</a></code>, <code><a href="ncol.html">ncol</a></code>, +<code><a href="nrow.html">nrow</a></code>, <code><a href="persist.html">persist</a></code>, +<code><a href="printSchema.html">printSchema</a></code>, <code><a href="randomSplit.html">randomSplit</a></code>, +<code><a href="rbind.html">rbind</a></code>, <code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="rename.html">rename</a></code>, <code><a href="repartition.html">repartition</a></code>, +<code><a href="sample.html">sample</a></code>, <code><a href="schema.html">schema</a></code>, +<code><a href="selectExpr.html">selectExpr</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="showDF.html">showDF</a></code>, <code><a href="show.html">show</a></code>, +<code><a href="storageLevel.html">storageLevel</a></code>, <code><a href="str.html">str</a></code>, +<code><a href="subset.html">subset</a></code>, <code><a href="take.html">take</a></code>, +<code><a href="union.html">union</a></code>, <code><a href="unpersist.html">unpersist</a></code>, +<code><a href="withColumn.html">withColumn</a></code>, <code><a href="with.html">with</a></code>, +<code><a href="write.df.html">write.df</a></code>, <code><a href="write.jdbc.html">write.jdbc</a></code>, +<code><a href="write.json.html">write.json</a></code>, <code><a href="write.orc.html">write.orc</a></code>, +<code><a href="write.parquet.html">write.parquet</a></code>, <code><a href="write.text.html">write.text</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D path <- "path/to/file.json" +##D df <- read.json(path) +##D saveAsTable(df, "myfile") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/schema.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/schema.html b/site/docs/2.1.3/api/R/schema.html new file mode 100644 index 0000000..2701685 --- /dev/null +++ b/site/docs/2.1.3/api/R/schema.html @@ -0,0 +1,99 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Get schema object</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for schema {SparkR}"><tr><td>schema {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Get schema object</h2> + +<h3>Description</h3> + +<p>Returns the schema of this SparkDataFrame as a structType object. +</p> + + +<h3>Usage</h3> + +<pre> +schema(x) + +## S4 method for signature 'SparkDataFrame' +schema(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkDataFrame</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>schema since 1.4.0 +</p> + + +<h3>See Also</h3> + +<p>Other SparkDataFrame functions: <code><a href="SparkDataFrame.html">SparkDataFrame-class</a></code>, +<code><a href="summarize.html">agg</a></code>, <code><a href="arrange.html">arrange</a></code>, +<code><a href="as.data.frame.html">as.data.frame</a></code>, <code><a href="attach.html">attach</a></code>, +<code><a href="cache.html">cache</a></code>, <code><a href="coalesce.html">coalesce</a></code>, +<code><a href="collect.html">collect</a></code>, <code><a href="columns.html">colnames</a></code>, +<code><a href="coltypes.html">coltypes</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="crossJoin.html">crossJoin</a></code>, <code><a href="dapplyCollect.html">dapplyCollect</a></code>, +<code><a href="dapply.html">dapply</a></code>, <code><a href="summary.html">describe</a></code>, +<code><a href="dim.html">dim</a></code>, <code><a href="distinct.html">distinct</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, <code><a href="nafunctions.html">dropna</a></code>, +<code><a href="drop.html">drop</a></code>, <code><a href="dtypes.html">dtypes</a></code>, +<code><a href="except.html">except</a></code>, <code><a href="explain.html">explain</a></code>, +<code><a href="filter.html">filter</a></code>, <code><a href="first.html">first</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, <code><a href="gapply.html">gapply</a></code>, +<code><a href="getNumPartitions.html">getNumPartitions</a></code>, <code><a href="groupBy.html">group_by</a></code>, +<code><a href="head.html">head</a></code>, <code><a href="histogram.html">histogram</a></code>, +<code><a href="insertInto.html">insertInto</a></code>, <code><a href="intersect.html">intersect</a></code>, +<code><a href="isLocal.html">isLocal</a></code>, <code><a href="join.html">join</a></code>, +<code><a href="limit.html">limit</a></code>, <code><a href="merge.html">merge</a></code>, +<code><a href="mutate.html">mutate</a></code>, <code><a href="ncol.html">ncol</a></code>, +<code><a href="nrow.html">nrow</a></code>, <code><a href="persist.html">persist</a></code>, +<code><a href="printSchema.html">printSchema</a></code>, <code><a href="randomSplit.html">randomSplit</a></code>, +<code><a href="rbind.html">rbind</a></code>, <code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="rename.html">rename</a></code>, <code><a href="repartition.html">repartition</a></code>, +<code><a href="sample.html">sample</a></code>, <code><a href="saveAsTable.html">saveAsTable</a></code>, +<code><a href="selectExpr.html">selectExpr</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="showDF.html">showDF</a></code>, <code><a href="show.html">show</a></code>, +<code><a href="storageLevel.html">storageLevel</a></code>, <code><a href="str.html">str</a></code>, +<code><a href="subset.html">subset</a></code>, <code><a href="take.html">take</a></code>, +<code><a href="union.html">union</a></code>, <code><a href="unpersist.html">unpersist</a></code>, +<code><a href="withColumn.html">withColumn</a></code>, <code><a href="with.html">with</a></code>, +<code><a href="write.df.html">write.df</a></code>, <code><a href="write.jdbc.html">write.jdbc</a></code>, +<code><a href="write.json.html">write.json</a></code>, <code><a href="write.orc.html">write.orc</a></code>, +<code><a href="write.parquet.html">write.parquet</a></code>, <code><a href="write.text.html">write.text</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D path <- "path/to/file.json" +##D df <- read.json(path) +##D dfSchema <- schema(df) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 2.1.3 <a href="00Index.html">Index</a>]</div> +</body></html> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org