http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/crosstab.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/crosstab.html b/site/docs/2.2.0/api/R/crosstab.html new file mode 100644 index 0000000..e944279 --- /dev/null +++ b/site/docs/2.2.0/api/R/crosstab.html @@ -0,0 +1,94 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: Computes a pair-wise frequency table of the given columns</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 crosstab {SparkR}"><tr><td>crosstab {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>Computes a pair-wise frequency table of the given columns</h2> + +<h3>Description</h3> + +<p>Computes a pair-wise frequency table of the given columns. Also known as a contingency +table. The number of distinct values for each column should be less than 1e4. At most 1e6 +non-zero pair frequencies will be returned. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'SparkDataFrame,character,character' +crosstab(x, col1, col2) +</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>col1</code></td> +<td> +<p>name of the first column. Distinct items will make the first item of each row.</p> +</td></tr> +<tr valign="top"><td><code>col2</code></td> +<td> +<p>name of the second column. Distinct items will make the column names of the output.</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>a local R data.frame representing the contingency table. The first column of each row +will be the distinct values of <code>col1</code> and the column names will be the distinct values +of <code>col2</code>. The name of the first column will be "<code>col1</code>_<code>col2</code>". Pairs +that have no occurrences will have zero as their counts. +</p> + + +<h3>Note</h3> + +<p>crosstab since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other stat functions: <code><a href="approxQuantile.html">approxQuantile</a></code>, +<code><a href="approxQuantile.html">approxQuantile,SparkDataFrame,character,numeric,numeric-method</a></code>; +<code><a href="corr.html">corr</a></code>, <code><a href="corr.html">corr</a></code>, +<code><a href="corr.html">corr</a></code>, <code><a href="corr.html">corr,Column-method</a></code>, +<code><a href="corr.html">corr,SparkDataFrame-method</a></code>; +<code><a href="cov.html">cov</a></code>, <code><a href="cov.html">cov</a></code>, <code><a href="cov.html">cov</a></code>, +<code><a href="cov.html">cov,SparkDataFrame-method</a></code>, +<code><a href="cov.html">cov,characterOrColumn-method</a></code>, +<code><a href="cov.html">covar_samp</a></code>, <code><a href="cov.html">covar_samp</a></code>, +<code><a href="cov.html">covar_samp,characterOrColumn,characterOrColumn-method</a></code>; +<code><a href="freqItems.html">freqItems</a></code>, +<code><a href="freqItems.html">freqItems,SparkDataFrame,character-method</a></code>; +<code><a href="sampleBy.html">sampleBy</a></code>, <code><a href="sampleBy.html">sampleBy</a></code>, +<code><a href="sampleBy.html">sampleBy,SparkDataFrame,character,list,numeric-method</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D df <- read.json("/path/to/file.json") +##D ct <- crosstab(df, "title", "gender") +## End(Not run) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html>
http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/cume_dist.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/cume_dist.html b/site/docs/2.2.0/api/R/cume_dist.html new file mode 100644 index 0000000..328243d --- /dev/null +++ b/site/docs/2.2.0/api/R/cume_dist.html @@ -0,0 +1,90 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: cume_dist</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 cume_dist {SparkR}"><tr><td>cume_dist {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>cume_dist</h2> + +<h3>Description</h3> + +<p>Window function: returns the cumulative distribution of values within a window partition, +i.e. the fraction of rows that are below the current row. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'missing' +cume_dist() + +cume_dist(x = "missing") +</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>N = total number of rows in the partition +cume_dist(x) = number of values before (and including) x / N +</p> +<p>This is equivalent to the <code>CUME_DIST</code> function in SQL. +</p> + + +<h3>Note</h3> + +<p>cume_dist since 1.6.0 +</p> + + +<h3>See Also</h3> + +<p>Other window_funcs: <code><a href="dense_rank.html">dense_rank</a></code>, +<code><a href="dense_rank.html">dense_rank</a></code>, +<code><a href="dense_rank.html">dense_rank,missing-method</a></code>; +<code><a href="lag.html">lag</a></code>, <code><a href="lag.html">lag</a></code>, +<code><a href="lag.html">lag,characterOrColumn-method</a></code>; +<code><a href="lead.html">lead</a></code>, <code><a href="lead.html">lead</a></code>, +<code><a href="lead.html">lead,characterOrColumn,numeric-method</a></code>; +<code><a href="ntile.html">ntile</a></code>, <code><a href="ntile.html">ntile</a></code>, +<code><a href="ntile.html">ntile,numeric-method</a></code>; +<code><a href="percent_rank.html">percent_rank</a></code>, <code><a href="percent_rank.html">percent_rank</a></code>, +<code><a href="percent_rank.html">percent_rank,missing-method</a></code>; +<code><a href="rank.html">rank</a></code>, <code><a href="rank.html">rank</a></code>, +<code><a href="rank.html">rank</a></code>, <code><a href="rank.html">rank,ANY-method</a></code>, +<code><a href="rank.html">rank,missing-method</a></code>; +<code><a href="row_number.html">row_number</a></code>, <code><a href="row_number.html">row_number</a></code>, +<code><a href="row_number.html">row_number,missing-method</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(cume_dist(), ws), df$hp, df$am) +## End(Not run) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/currentDatabase.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/currentDatabase.html b/site/docs/2.2.0/api/R/currentDatabase.html new file mode 100644 index 0000000..0b9d463 --- /dev/null +++ b/site/docs/2.2.0/api/R/currentDatabase.html @@ -0,0 +1,51 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: Returns the current default database</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 currentDatabase {SparkR}"><tr><td>currentDatabase {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>Returns the current default database</h2> + +<h3>Description</h3> + +<p>Returns the current default database. +</p> + + +<h3>Usage</h3> + +<pre> +currentDatabase() +</pre> + + +<h3>Value</h3> + +<p>name of the current default database. +</p> + + +<h3>Note</h3> + +<p>since 2.2.0 +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D currentDatabase() +## End(Not run) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/dapply.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/dapply.html b/site/docs/2.2.0/api/R/dapply.html new file mode 100644 index 0000000..1b961a8 --- /dev/null +++ b/site/docs/2.2.0/api/R/dapply.html @@ -0,0 +1,316 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: dapply</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 dapply {SparkR}"><tr><td>dapply {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>dapply</h2> + +<h3>Description</h3> + +<p>Apply a function to each partition of a SparkDataFrame. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'SparkDataFrame,'function',structType' +dapply(x, func, schema) + +dapply(x, func, schema) +</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>func</code></td> +<td> +<p>A function to be applied to each partition of the SparkDataFrame. +func should have only one parameter, to which a R data.frame corresponds +to each partition will be passed. +The output of func should be a R data.frame.</p> +</td></tr> +<tr valign="top"><td><code>schema</code></td> +<td> +<p>The schema of the resulting SparkDataFrame after the function is applied. +It must match the output of func.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>dapply since 2.0.0 +</p> + + +<h3>See Also</h3> + +<p><a href="dapplyCollect.html">dapplyCollect</a> +</p> +<p>Other SparkDataFrame functions: <code><a href="select.html">$</a></code>, +<code><a href="select.html">$,SparkDataFrame-method</a></code>, <code><a href="select.html">$<-</a></code>, +<code><a href="select.html">$<-,SparkDataFrame-method</a></code>, +<code><a href="select.html">select</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="select.html">select,SparkDataFrame,Column-method</a></code>, +<code><a href="select.html">select,SparkDataFrame,character-method</a></code>, +<code><a href="select.html">select,SparkDataFrame,list-method</a></code>; +<code><a href="SparkDataFrame.html">SparkDataFrame-class</a></code>; <code><a href="subset.html">[</a></code>, +<code><a href="subset.html">[,SparkDataFrame-method</a></code>, <code><a href="subset.html">[[</a></code>, +<code><a href="subset.html">[[,SparkDataFrame,numericOrcharacter-method</a></code>, +<code><a href="subset.html">[[<-</a></code>, +<code><a href="subset.html">[[<-,SparkDataFrame,numericOrcharacter-method</a></code>, +<code><a href="subset.html">subset</a></code>, <code><a href="subset.html">subset</a></code>, +<code><a href="subset.html">subset,SparkDataFrame-method</a></code>; +<code><a href="summarize.html">agg</a></code>, <code><a href="summarize.html">agg</a></code>, <code><a href="summarize.html">agg</a></code>, +<code><a href="summarize.html">agg,GroupedData-method</a></code>, +<code><a href="summarize.html">agg,SparkDataFrame-method</a></code>, +<code><a href="summarize.html">summarize</a></code>, <code><a href="summarize.html">summarize</a></code>, +<code><a href="summarize.html">summarize</a></code>, +<code><a href="summarize.html">summarize,GroupedData-method</a></code>, +<code><a href="summarize.html">summarize,SparkDataFrame-method</a></code>; +<code><a href="arrange.html">arrange</a></code>, <code><a href="arrange.html">arrange</a></code>, +<code><a href="arrange.html">arrange</a></code>, +<code><a href="arrange.html">arrange,SparkDataFrame,Column-method</a></code>, +<code><a href="arrange.html">arrange,SparkDataFrame,character-method</a></code>, +<code><a href="arrange.html">orderBy,SparkDataFrame,characterOrColumn-method</a></code>; +<code><a href="as.data.frame.html">as.data.frame</a></code>, +<code><a href="as.data.frame.html">as.data.frame,SparkDataFrame-method</a></code>; +<code><a href="attach.html">attach</a></code>, +<code><a href="attach.html">attach,SparkDataFrame-method</a></code>; +<code><a href="cache.html">cache</a></code>, <code><a href="cache.html">cache</a></code>, +<code><a href="cache.html">cache,SparkDataFrame-method</a></code>; +<code><a href="checkpoint.html">checkpoint</a></code>, <code><a href="checkpoint.html">checkpoint</a></code>, +<code><a href="checkpoint.html">checkpoint,SparkDataFrame-method</a></code>; +<code><a href="coalesce.html">coalesce</a></code>, <code><a href="coalesce.html">coalesce</a></code>, +<code><a href="coalesce.html">coalesce</a></code>, +<code><a href="coalesce.html">coalesce,Column-method</a></code>, +<code><a href="coalesce.html">coalesce,SparkDataFrame-method</a></code>; +<code><a href="collect.html">collect</a></code>, <code><a href="collect.html">collect</a></code>, +<code><a href="collect.html">collect,SparkDataFrame-method</a></code>; +<code><a href="columns.html">colnames</a></code>, <code><a href="columns.html">colnames</a></code>, +<code><a href="columns.html">colnames,SparkDataFrame-method</a></code>, +<code><a href="columns.html">colnames<-</a></code>, <code><a href="columns.html">colnames<-</a></code>, +<code><a href="columns.html">colnames<-,SparkDataFrame-method</a></code>, +<code><a href="columns.html">columns</a></code>, <code><a href="columns.html">columns</a></code>, +<code><a href="columns.html">columns,SparkDataFrame-method</a></code>, +<code><a href="columns.html">names</a></code>, +<code><a href="columns.html">names,SparkDataFrame-method</a></code>, +<code><a href="columns.html">names<-</a></code>, +<code><a href="columns.html">names<-,SparkDataFrame-method</a></code>; +<code><a href="coltypes.html">coltypes</a></code>, <code><a href="coltypes.html">coltypes</a></code>, +<code><a href="coltypes.html">coltypes,SparkDataFrame-method</a></code>, +<code><a href="coltypes.html">coltypes<-</a></code>, <code><a href="coltypes.html">coltypes<-</a></code>, +<code><a href="coltypes.html">coltypes<-,SparkDataFrame,character-method</a></code>; +<code><a href="nrow.html">count,SparkDataFrame-method</a></code>, +<code><a href="nrow.html">nrow</a></code>, <code><a href="nrow.html">nrow</a></code>, +<code><a href="nrow.html">nrow,SparkDataFrame-method</a></code>; +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView,SparkDataFrame,character-method</a></code>; +<code><a href="crossJoin.html">crossJoin</a></code>, +<code><a href="crossJoin.html">crossJoin,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="dapplyCollect.html">dapplyCollect</a></code>, <code><a href="dapplyCollect.html">dapplyCollect</a></code>, +<code><a href="dapplyCollect.html">dapplyCollect,SparkDataFrame,function-method</a></code>; +<code><a href="summary.html">describe</a></code>, <code><a href="summary.html">describe</a></code>, +<code><a href="summary.html">describe</a></code>, +<code><a href="summary.html">describe,SparkDataFrame,ANY-method</a></code>, +<code><a href="summary.html">describe,SparkDataFrame,character-method</a></code>, +<code><a href="summary.html">describe,SparkDataFrame-method</a></code>, +<code><a href="summary.html">summary</a></code>, <code><a href="summary.html">summary</a></code>, +<code><a href="summary.html">summary,SparkDataFrame-method</a></code>; +<code><a href="dim.html">dim</a></code>, +<code><a href="dim.html">dim,SparkDataFrame-method</a></code>; +<code><a href="distinct.html">distinct</a></code>, <code><a href="distinct.html">distinct</a></code>, +<code><a href="distinct.html">distinct,SparkDataFrame-method</a></code>, +<code><a href="distinct.html">unique</a></code>, +<code><a href="distinct.html">unique,SparkDataFrame-method</a></code>; +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates,SparkDataFrame-method</a></code>; +<code><a href="nafunctions.html">dropna</a></code>, <code><a href="nafunctions.html">dropna</a></code>, +<code><a href="nafunctions.html">dropna,SparkDataFrame-method</a></code>, +<code><a href="nafunctions.html">fillna</a></code>, <code><a href="nafunctions.html">fillna</a></code>, +<code><a href="nafunctions.html">fillna,SparkDataFrame-method</a></code>, +<code><a href="nafunctions.html">na.omit</a></code>, <code><a href="nafunctions.html">na.omit</a></code>, +<code><a href="nafunctions.html">na.omit,SparkDataFrame-method</a></code>; +<code><a href="drop.html">drop</a></code>, <code><a href="drop.html">drop</a></code>, +<code><a href="drop.html">drop</a></code>, <code><a href="drop.html">drop,ANY-method</a></code>, +<code><a href="drop.html">drop,SparkDataFrame-method</a></code>; +<code><a href="dtypes.html">dtypes</a></code>, <code><a href="dtypes.html">dtypes</a></code>, +<code><a href="dtypes.html">dtypes,SparkDataFrame-method</a></code>; +<code><a href="except.html">except</a></code>, <code><a href="except.html">except</a></code>, +<code><a href="except.html">except,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="explain.html">explain</a></code>, <code><a href="explain.html">explain</a></code>, +<code><a href="explain.html">explain</a></code>, +<code><a href="explain.html">explain,SparkDataFrame-method</a></code>, +<code><a href="explain.html">explain,StreamingQuery-method</a></code>; +<code><a href="filter.html">filter</a></code>, <code><a href="filter.html">filter</a></code>, +<code><a href="filter.html">filter,SparkDataFrame,characterOrColumn-method</a></code>, +<code><a href="filter.html">where</a></code>, <code><a href="filter.html">where</a></code>, +<code><a href="filter.html">where,SparkDataFrame,characterOrColumn-method</a></code>; +<code><a href="first.html">first</a></code>, <code><a href="first.html">first</a></code>, +<code><a href="first.html">first</a></code>, +<code><a href="first.html">first,SparkDataFrame-method</a></code>, +<code><a href="first.html">first,characterOrColumn-method</a></code>; +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, <code><a href="gapplyCollect.html">gapplyCollect</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect,GroupedData-method</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect,SparkDataFrame-method</a></code>; +<code><a href="gapply.html">gapply</a></code>, <code><a href="gapply.html">gapply</a></code>, +<code><a href="gapply.html">gapply</a></code>, +<code><a href="gapply.html">gapply,GroupedData-method</a></code>, +<code><a href="gapply.html">gapply,SparkDataFrame-method</a></code>; +<code><a href="getNumPartitions.html">getNumPartitions</a></code>, +<code><a href="getNumPartitions.html">getNumPartitions,SparkDataFrame-method</a></code>; +<code><a href="groupBy.html">groupBy</a></code>, <code><a href="groupBy.html">groupBy</a></code>, +<code><a href="groupBy.html">groupBy,SparkDataFrame-method</a></code>, +<code><a href="groupBy.html">group_by</a></code>, <code><a href="groupBy.html">group_by</a></code>, +<code><a href="groupBy.html">group_by,SparkDataFrame-method</a></code>; +<code><a href="head.html">head</a></code>, +<code><a href="head.html">head,SparkDataFrame-method</a></code>; +<code><a href="hint.html">hint</a></code>, <code><a href="hint.html">hint</a></code>, +<code><a href="hint.html">hint,SparkDataFrame,character-method</a></code>; +<code><a href="histogram.html">histogram</a></code>, +<code><a href="histogram.html">histogram,SparkDataFrame,characterOrColumn-method</a></code>; +<code><a href="insertInto.html">insertInto</a></code>, <code><a href="insertInto.html">insertInto</a></code>, +<code><a href="insertInto.html">insertInto,SparkDataFrame,character-method</a></code>; +<code><a href="intersect.html">intersect</a></code>, <code><a href="intersect.html">intersect</a></code>, +<code><a href="intersect.html">intersect,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="isLocal.html">isLocal</a></code>, <code><a href="isLocal.html">isLocal</a></code>, +<code><a href="isLocal.html">isLocal,SparkDataFrame-method</a></code>; +<code><a href="isStreaming.html">isStreaming</a></code>, <code><a href="isStreaming.html">isStreaming</a></code>, +<code><a href="isStreaming.html">isStreaming,SparkDataFrame-method</a></code>; +<code><a href="join.html">join</a></code>, +<code><a href="join.html">join,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="limit.html">limit</a></code>, <code><a href="limit.html">limit</a></code>, +<code><a href="limit.html">limit,SparkDataFrame,numeric-method</a></code>; +<code><a href="merge.html">merge</a></code>, <code><a href="merge.html">merge</a></code>, +<code><a href="merge.html">merge,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="mutate.html">mutate</a></code>, <code><a href="mutate.html">mutate</a></code>, +<code><a href="mutate.html">mutate,SparkDataFrame-method</a></code>, +<code><a href="mutate.html">transform</a></code>, <code><a href="mutate.html">transform</a></code>, +<code><a href="mutate.html">transform,SparkDataFrame-method</a></code>; +<code><a href="ncol.html">ncol</a></code>, +<code><a href="ncol.html">ncol,SparkDataFrame-method</a></code>; +<code><a href="persist.html">persist</a></code>, <code><a href="persist.html">persist</a></code>, +<code><a href="persist.html">persist,SparkDataFrame,character-method</a></code>; +<code><a href="printSchema.html">printSchema</a></code>, <code><a href="printSchema.html">printSchema</a></code>, +<code><a href="printSchema.html">printSchema,SparkDataFrame-method</a></code>; +<code><a href="randomSplit.html">randomSplit</a></code>, <code><a href="randomSplit.html">randomSplit</a></code>, +<code><a href="randomSplit.html">randomSplit,SparkDataFrame,numeric-method</a></code>; +<code><a href="rbind.html">rbind</a></code>, <code><a href="rbind.html">rbind</a></code>, +<code><a href="rbind.html">rbind,SparkDataFrame-method</a></code>; +<code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="registerTempTable-deprecated.html">registerTempTable,SparkDataFrame,character-method</a></code>; +<code><a href="rename.html">rename</a></code>, <code><a href="rename.html">rename</a></code>, +<code><a href="rename.html">rename,SparkDataFrame-method</a></code>, +<code><a href="rename.html">withColumnRenamed</a></code>, +<code><a href="rename.html">withColumnRenamed</a></code>, +<code><a href="rename.html">withColumnRenamed,SparkDataFrame,character,character-method</a></code>; +<code><a href="repartition.html">repartition</a></code>, <code><a href="repartition.html">repartition</a></code>, +<code><a href="repartition.html">repartition,SparkDataFrame-method</a></code>; +<code><a href="sample.html">sample</a></code>, <code><a href="sample.html">sample</a></code>, +<code><a href="sample.html">sample,SparkDataFrame,logical,numeric-method</a></code>, +<code><a href="sample.html">sample_frac</a></code>, <code><a href="sample.html">sample_frac</a></code>, +<code><a href="sample.html">sample_frac,SparkDataFrame,logical,numeric-method</a></code>; +<code><a href="write.parquet.html">saveAsParquetFile</a></code>, +<code><a href="write.parquet.html">saveAsParquetFile</a></code>, +<code><a href="write.parquet.html">saveAsParquetFile,SparkDataFrame,character-method</a></code>, +<code><a href="write.parquet.html">write.parquet</a></code>, <code><a href="write.parquet.html">write.parquet</a></code>, +<code><a href="write.parquet.html">write.parquet,SparkDataFrame,character-method</a></code>; +<code><a href="saveAsTable.html">saveAsTable</a></code>, <code><a href="saveAsTable.html">saveAsTable</a></code>, +<code><a href="saveAsTable.html">saveAsTable,SparkDataFrame,character-method</a></code>; +<code><a href="write.df.html">saveDF</a></code>, <code><a href="write.df.html">saveDF</a></code>, +<code><a href="write.df.html">saveDF,SparkDataFrame,character-method</a></code>, +<code><a href="write.df.html">write.df</a></code>, <code><a href="write.df.html">write.df</a></code>, +<code><a href="write.df.html">write.df</a></code>, +<code><a href="write.df.html">write.df,SparkDataFrame-method</a></code>; +<code><a href="schema.html">schema</a></code>, <code><a href="schema.html">schema</a></code>, +<code><a href="schema.html">schema,SparkDataFrame-method</a></code>; +<code><a href="selectExpr.html">selectExpr</a></code>, <code><a href="selectExpr.html">selectExpr</a></code>, +<code><a href="selectExpr.html">selectExpr,SparkDataFrame,character-method</a></code>; +<code><a href="showDF.html">showDF</a></code>, <code><a href="showDF.html">showDF</a></code>, +<code><a href="showDF.html">showDF,SparkDataFrame-method</a></code>; +<code><a href="show.html">show</a></code>, <code><a href="show.html">show</a></code>, +<code><a href="show.html">show,Column-method</a></code>, +<code><a href="show.html">show,GroupedData-method</a></code>, +<code><a href="show.html">show,SparkDataFrame-method</a></code>, +<code><a href="show.html">show,StreamingQuery-method</a></code>, +<code><a href="show.html">show,WindowSpec-method</a></code>; +<code><a href="storageLevel.html">storageLevel</a></code>, +<code><a href="storageLevel.html">storageLevel,SparkDataFrame-method</a></code>; +<code><a href="str.html">str</a></code>, +<code><a href="str.html">str,SparkDataFrame-method</a></code>; +<code><a href="take.html">take</a></code>, <code><a href="take.html">take</a></code>, +<code><a href="take.html">take,SparkDataFrame,numeric-method</a></code>; +<code><a href="toJSON.html">toJSON</a></code>, +<code><a href="toJSON.html">toJSON,SparkDataFrame-method</a></code>; +<code><a href="union.html">union</a></code>, <code><a href="union.html">union</a></code>, +<code><a href="union.html">union,SparkDataFrame,SparkDataFrame-method</a></code>, +<code><a href="union.html">unionAll</a></code>, <code><a href="union.html">unionAll</a></code>, +<code><a href="union.html">unionAll,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="unpersist.html">unpersist</a></code>, <code><a href="unpersist.html">unpersist</a></code>, +<code><a href="unpersist.html">unpersist,SparkDataFrame-method</a></code>; +<code><a href="withColumn.html">withColumn</a></code>, <code><a href="withColumn.html">withColumn</a></code>, +<code><a href="withColumn.html">withColumn,SparkDataFrame,character-method</a></code>; +<code><a href="with.html">with</a></code>, +<code><a href="with.html">with,SparkDataFrame-method</a></code>; +<code><a href="write.jdbc.html">write.jdbc</a></code>, <code><a href="write.jdbc.html">write.jdbc</a></code>, +<code><a href="write.jdbc.html">write.jdbc,SparkDataFrame,character,character-method</a></code>; +<code><a href="write.json.html">write.json</a></code>, <code><a href="write.json.html">write.json</a></code>, +<code><a href="write.json.html">write.json,SparkDataFrame,character-method</a></code>; +<code><a href="write.orc.html">write.orc</a></code>, <code><a href="write.orc.html">write.orc</a></code>, +<code><a href="write.orc.html">write.orc,SparkDataFrame,character-method</a></code>; +<code><a href="write.stream.html">write.stream</a></code>, <code><a href="write.stream.html">write.stream</a></code>, +<code><a href="write.stream.html">write.stream,SparkDataFrame-method</a></code>; +<code><a href="write.text.html">write.text</a></code>, <code><a href="write.text.html">write.text</a></code>, +<code><a href="write.text.html">write.text,SparkDataFrame,character-method</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D df <- createDataFrame(iris) +##D df1 <- dapply(df, function(x) { x }, schema(df)) +##D collect(df1) +##D +##D # filter and add a column +##D df <- createDataFrame( +##D list(list(1L, 1, "1"), list(2L, 2, "2"), list(3L, 3, "3")), +##D c("a", "b", "c")) +##D schema <- structType(structField("a", "integer"), structField("b", "double"), +##D structField("c", "string"), structField("d", "integer")) +##D df1 <- dapply( +##D df, +##D function(x) { +##D y <- x[x[1] > 1, ] +##D y <- cbind(y, y[1] + 1L) +##D }, +##D schema) +##D collect(df1) +##D # the result +##D # a b c d +##D # 1 2 2 2 3 +##D # 2 3 3 3 4 +## End(Not run) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/dapplyCollect.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/dapplyCollect.html b/site/docs/2.2.0/api/R/dapplyCollect.html new file mode 100644 index 0000000..6fbf97b --- /dev/null +++ b/site/docs/2.2.0/api/R/dapplyCollect.html @@ -0,0 +1,307 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: dapplyCollect</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 dapplyCollect {SparkR}"><tr><td>dapplyCollect {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>dapplyCollect</h2> + +<h3>Description</h3> + +<p>Apply a function to each partition of a SparkDataFrame and collect the result back +to R as a data.frame. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'SparkDataFrame,'function'' +dapplyCollect(x, func) + +dapplyCollect(x, func) +</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>func</code></td> +<td> +<p>A function to be applied to each partition of the SparkDataFrame. +func should have only one parameter, to which a R data.frame corresponds +to each partition will be passed. +The output of func should be a R data.frame.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>dapplyCollect since 2.0.0 +</p> + + +<h3>See Also</h3> + +<p><a href="dapply.html">dapply</a> +</p> +<p>Other SparkDataFrame functions: <code><a href="select.html">$</a></code>, +<code><a href="select.html">$,SparkDataFrame-method</a></code>, <code><a href="select.html">$<-</a></code>, +<code><a href="select.html">$<-,SparkDataFrame-method</a></code>, +<code><a href="select.html">select</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="select.html">select,SparkDataFrame,Column-method</a></code>, +<code><a href="select.html">select,SparkDataFrame,character-method</a></code>, +<code><a href="select.html">select,SparkDataFrame,list-method</a></code>; +<code><a href="SparkDataFrame.html">SparkDataFrame-class</a></code>; <code><a href="subset.html">[</a></code>, +<code><a href="subset.html">[,SparkDataFrame-method</a></code>, <code><a href="subset.html">[[</a></code>, +<code><a href="subset.html">[[,SparkDataFrame,numericOrcharacter-method</a></code>, +<code><a href="subset.html">[[<-</a></code>, +<code><a href="subset.html">[[<-,SparkDataFrame,numericOrcharacter-method</a></code>, +<code><a href="subset.html">subset</a></code>, <code><a href="subset.html">subset</a></code>, +<code><a href="subset.html">subset,SparkDataFrame-method</a></code>; +<code><a href="summarize.html">agg</a></code>, <code><a href="summarize.html">agg</a></code>, <code><a href="summarize.html">agg</a></code>, +<code><a href="summarize.html">agg,GroupedData-method</a></code>, +<code><a href="summarize.html">agg,SparkDataFrame-method</a></code>, +<code><a href="summarize.html">summarize</a></code>, <code><a href="summarize.html">summarize</a></code>, +<code><a href="summarize.html">summarize</a></code>, +<code><a href="summarize.html">summarize,GroupedData-method</a></code>, +<code><a href="summarize.html">summarize,SparkDataFrame-method</a></code>; +<code><a href="arrange.html">arrange</a></code>, <code><a href="arrange.html">arrange</a></code>, +<code><a href="arrange.html">arrange</a></code>, +<code><a href="arrange.html">arrange,SparkDataFrame,Column-method</a></code>, +<code><a href="arrange.html">arrange,SparkDataFrame,character-method</a></code>, +<code><a href="arrange.html">orderBy,SparkDataFrame,characterOrColumn-method</a></code>; +<code><a href="as.data.frame.html">as.data.frame</a></code>, +<code><a href="as.data.frame.html">as.data.frame,SparkDataFrame-method</a></code>; +<code><a href="attach.html">attach</a></code>, +<code><a href="attach.html">attach,SparkDataFrame-method</a></code>; +<code><a href="cache.html">cache</a></code>, <code><a href="cache.html">cache</a></code>, +<code><a href="cache.html">cache,SparkDataFrame-method</a></code>; +<code><a href="checkpoint.html">checkpoint</a></code>, <code><a href="checkpoint.html">checkpoint</a></code>, +<code><a href="checkpoint.html">checkpoint,SparkDataFrame-method</a></code>; +<code><a href="coalesce.html">coalesce</a></code>, <code><a href="coalesce.html">coalesce</a></code>, +<code><a href="coalesce.html">coalesce</a></code>, +<code><a href="coalesce.html">coalesce,Column-method</a></code>, +<code><a href="coalesce.html">coalesce,SparkDataFrame-method</a></code>; +<code><a href="collect.html">collect</a></code>, <code><a href="collect.html">collect</a></code>, +<code><a href="collect.html">collect,SparkDataFrame-method</a></code>; +<code><a href="columns.html">colnames</a></code>, <code><a href="columns.html">colnames</a></code>, +<code><a href="columns.html">colnames,SparkDataFrame-method</a></code>, +<code><a href="columns.html">colnames<-</a></code>, <code><a href="columns.html">colnames<-</a></code>, +<code><a href="columns.html">colnames<-,SparkDataFrame-method</a></code>, +<code><a href="columns.html">columns</a></code>, <code><a href="columns.html">columns</a></code>, +<code><a href="columns.html">columns,SparkDataFrame-method</a></code>, +<code><a href="columns.html">names</a></code>, +<code><a href="columns.html">names,SparkDataFrame-method</a></code>, +<code><a href="columns.html">names<-</a></code>, +<code><a href="columns.html">names<-,SparkDataFrame-method</a></code>; +<code><a href="coltypes.html">coltypes</a></code>, <code><a href="coltypes.html">coltypes</a></code>, +<code><a href="coltypes.html">coltypes,SparkDataFrame-method</a></code>, +<code><a href="coltypes.html">coltypes<-</a></code>, <code><a href="coltypes.html">coltypes<-</a></code>, +<code><a href="coltypes.html">coltypes<-,SparkDataFrame,character-method</a></code>; +<code><a href="nrow.html">count,SparkDataFrame-method</a></code>, +<code><a href="nrow.html">nrow</a></code>, <code><a href="nrow.html">nrow</a></code>, +<code><a href="nrow.html">nrow,SparkDataFrame-method</a></code>; +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView</a></code>, +<code><a href="createOrReplaceTempView.html">createOrReplaceTempView,SparkDataFrame,character-method</a></code>; +<code><a href="crossJoin.html">crossJoin</a></code>, +<code><a href="crossJoin.html">crossJoin,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="dapply.html">dapply</a></code>, <code><a href="dapply.html">dapply</a></code>, +<code><a href="dapply.html">dapply,SparkDataFrame,function,structType-method</a></code>; +<code><a href="summary.html">describe</a></code>, <code><a href="summary.html">describe</a></code>, +<code><a href="summary.html">describe</a></code>, +<code><a href="summary.html">describe,SparkDataFrame,ANY-method</a></code>, +<code><a href="summary.html">describe,SparkDataFrame,character-method</a></code>, +<code><a href="summary.html">describe,SparkDataFrame-method</a></code>, +<code><a href="summary.html">summary</a></code>, <code><a href="summary.html">summary</a></code>, +<code><a href="summary.html">summary,SparkDataFrame-method</a></code>; +<code><a href="dim.html">dim</a></code>, +<code><a href="dim.html">dim,SparkDataFrame-method</a></code>; +<code><a href="distinct.html">distinct</a></code>, <code><a href="distinct.html">distinct</a></code>, +<code><a href="distinct.html">distinct,SparkDataFrame-method</a></code>, +<code><a href="distinct.html">unique</a></code>, +<code><a href="distinct.html">unique,SparkDataFrame-method</a></code>; +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates</a></code>, +<code><a href="dropDuplicates.html">dropDuplicates,SparkDataFrame-method</a></code>; +<code><a href="nafunctions.html">dropna</a></code>, <code><a href="nafunctions.html">dropna</a></code>, +<code><a href="nafunctions.html">dropna,SparkDataFrame-method</a></code>, +<code><a href="nafunctions.html">fillna</a></code>, <code><a href="nafunctions.html">fillna</a></code>, +<code><a href="nafunctions.html">fillna,SparkDataFrame-method</a></code>, +<code><a href="nafunctions.html">na.omit</a></code>, <code><a href="nafunctions.html">na.omit</a></code>, +<code><a href="nafunctions.html">na.omit,SparkDataFrame-method</a></code>; +<code><a href="drop.html">drop</a></code>, <code><a href="drop.html">drop</a></code>, +<code><a href="drop.html">drop</a></code>, <code><a href="drop.html">drop,ANY-method</a></code>, +<code><a href="drop.html">drop,SparkDataFrame-method</a></code>; +<code><a href="dtypes.html">dtypes</a></code>, <code><a href="dtypes.html">dtypes</a></code>, +<code><a href="dtypes.html">dtypes,SparkDataFrame-method</a></code>; +<code><a href="except.html">except</a></code>, <code><a href="except.html">except</a></code>, +<code><a href="except.html">except,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="explain.html">explain</a></code>, <code><a href="explain.html">explain</a></code>, +<code><a href="explain.html">explain</a></code>, +<code><a href="explain.html">explain,SparkDataFrame-method</a></code>, +<code><a href="explain.html">explain,StreamingQuery-method</a></code>; +<code><a href="filter.html">filter</a></code>, <code><a href="filter.html">filter</a></code>, +<code><a href="filter.html">filter,SparkDataFrame,characterOrColumn-method</a></code>, +<code><a href="filter.html">where</a></code>, <code><a href="filter.html">where</a></code>, +<code><a href="filter.html">where,SparkDataFrame,characterOrColumn-method</a></code>; +<code><a href="first.html">first</a></code>, <code><a href="first.html">first</a></code>, +<code><a href="first.html">first</a></code>, +<code><a href="first.html">first,SparkDataFrame-method</a></code>, +<code><a href="first.html">first,characterOrColumn-method</a></code>; +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, <code><a href="gapplyCollect.html">gapplyCollect</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect,GroupedData-method</a></code>, +<code><a href="gapplyCollect.html">gapplyCollect,SparkDataFrame-method</a></code>; +<code><a href="gapply.html">gapply</a></code>, <code><a href="gapply.html">gapply</a></code>, +<code><a href="gapply.html">gapply</a></code>, +<code><a href="gapply.html">gapply,GroupedData-method</a></code>, +<code><a href="gapply.html">gapply,SparkDataFrame-method</a></code>; +<code><a href="getNumPartitions.html">getNumPartitions</a></code>, +<code><a href="getNumPartitions.html">getNumPartitions,SparkDataFrame-method</a></code>; +<code><a href="groupBy.html">groupBy</a></code>, <code><a href="groupBy.html">groupBy</a></code>, +<code><a href="groupBy.html">groupBy,SparkDataFrame-method</a></code>, +<code><a href="groupBy.html">group_by</a></code>, <code><a href="groupBy.html">group_by</a></code>, +<code><a href="groupBy.html">group_by,SparkDataFrame-method</a></code>; +<code><a href="head.html">head</a></code>, +<code><a href="head.html">head,SparkDataFrame-method</a></code>; +<code><a href="hint.html">hint</a></code>, <code><a href="hint.html">hint</a></code>, +<code><a href="hint.html">hint,SparkDataFrame,character-method</a></code>; +<code><a href="histogram.html">histogram</a></code>, +<code><a href="histogram.html">histogram,SparkDataFrame,characterOrColumn-method</a></code>; +<code><a href="insertInto.html">insertInto</a></code>, <code><a href="insertInto.html">insertInto</a></code>, +<code><a href="insertInto.html">insertInto,SparkDataFrame,character-method</a></code>; +<code><a href="intersect.html">intersect</a></code>, <code><a href="intersect.html">intersect</a></code>, +<code><a href="intersect.html">intersect,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="isLocal.html">isLocal</a></code>, <code><a href="isLocal.html">isLocal</a></code>, +<code><a href="isLocal.html">isLocal,SparkDataFrame-method</a></code>; +<code><a href="isStreaming.html">isStreaming</a></code>, <code><a href="isStreaming.html">isStreaming</a></code>, +<code><a href="isStreaming.html">isStreaming,SparkDataFrame-method</a></code>; +<code><a href="join.html">join</a></code>, +<code><a href="join.html">join,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="limit.html">limit</a></code>, <code><a href="limit.html">limit</a></code>, +<code><a href="limit.html">limit,SparkDataFrame,numeric-method</a></code>; +<code><a href="merge.html">merge</a></code>, <code><a href="merge.html">merge</a></code>, +<code><a href="merge.html">merge,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="mutate.html">mutate</a></code>, <code><a href="mutate.html">mutate</a></code>, +<code><a href="mutate.html">mutate,SparkDataFrame-method</a></code>, +<code><a href="mutate.html">transform</a></code>, <code><a href="mutate.html">transform</a></code>, +<code><a href="mutate.html">transform,SparkDataFrame-method</a></code>; +<code><a href="ncol.html">ncol</a></code>, +<code><a href="ncol.html">ncol,SparkDataFrame-method</a></code>; +<code><a href="persist.html">persist</a></code>, <code><a href="persist.html">persist</a></code>, +<code><a href="persist.html">persist,SparkDataFrame,character-method</a></code>; +<code><a href="printSchema.html">printSchema</a></code>, <code><a href="printSchema.html">printSchema</a></code>, +<code><a href="printSchema.html">printSchema,SparkDataFrame-method</a></code>; +<code><a href="randomSplit.html">randomSplit</a></code>, <code><a href="randomSplit.html">randomSplit</a></code>, +<code><a href="randomSplit.html">randomSplit,SparkDataFrame,numeric-method</a></code>; +<code><a href="rbind.html">rbind</a></code>, <code><a href="rbind.html">rbind</a></code>, +<code><a href="rbind.html">rbind,SparkDataFrame-method</a></code>; +<code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="registerTempTable-deprecated.html">registerTempTable</a></code>, +<code><a href="registerTempTable-deprecated.html">registerTempTable,SparkDataFrame,character-method</a></code>; +<code><a href="rename.html">rename</a></code>, <code><a href="rename.html">rename</a></code>, +<code><a href="rename.html">rename,SparkDataFrame-method</a></code>, +<code><a href="rename.html">withColumnRenamed</a></code>, +<code><a href="rename.html">withColumnRenamed</a></code>, +<code><a href="rename.html">withColumnRenamed,SparkDataFrame,character,character-method</a></code>; +<code><a href="repartition.html">repartition</a></code>, <code><a href="repartition.html">repartition</a></code>, +<code><a href="repartition.html">repartition,SparkDataFrame-method</a></code>; +<code><a href="sample.html">sample</a></code>, <code><a href="sample.html">sample</a></code>, +<code><a href="sample.html">sample,SparkDataFrame,logical,numeric-method</a></code>, +<code><a href="sample.html">sample_frac</a></code>, <code><a href="sample.html">sample_frac</a></code>, +<code><a href="sample.html">sample_frac,SparkDataFrame,logical,numeric-method</a></code>; +<code><a href="write.parquet.html">saveAsParquetFile</a></code>, +<code><a href="write.parquet.html">saveAsParquetFile</a></code>, +<code><a href="write.parquet.html">saveAsParquetFile,SparkDataFrame,character-method</a></code>, +<code><a href="write.parquet.html">write.parquet</a></code>, <code><a href="write.parquet.html">write.parquet</a></code>, +<code><a href="write.parquet.html">write.parquet,SparkDataFrame,character-method</a></code>; +<code><a href="saveAsTable.html">saveAsTable</a></code>, <code><a href="saveAsTable.html">saveAsTable</a></code>, +<code><a href="saveAsTable.html">saveAsTable,SparkDataFrame,character-method</a></code>; +<code><a href="write.df.html">saveDF</a></code>, <code><a href="write.df.html">saveDF</a></code>, +<code><a href="write.df.html">saveDF,SparkDataFrame,character-method</a></code>, +<code><a href="write.df.html">write.df</a></code>, <code><a href="write.df.html">write.df</a></code>, +<code><a href="write.df.html">write.df</a></code>, +<code><a href="write.df.html">write.df,SparkDataFrame-method</a></code>; +<code><a href="schema.html">schema</a></code>, <code><a href="schema.html">schema</a></code>, +<code><a href="schema.html">schema,SparkDataFrame-method</a></code>; +<code><a href="selectExpr.html">selectExpr</a></code>, <code><a href="selectExpr.html">selectExpr</a></code>, +<code><a href="selectExpr.html">selectExpr,SparkDataFrame,character-method</a></code>; +<code><a href="showDF.html">showDF</a></code>, <code><a href="showDF.html">showDF</a></code>, +<code><a href="showDF.html">showDF,SparkDataFrame-method</a></code>; +<code><a href="show.html">show</a></code>, <code><a href="show.html">show</a></code>, +<code><a href="show.html">show,Column-method</a></code>, +<code><a href="show.html">show,GroupedData-method</a></code>, +<code><a href="show.html">show,SparkDataFrame-method</a></code>, +<code><a href="show.html">show,StreamingQuery-method</a></code>, +<code><a href="show.html">show,WindowSpec-method</a></code>; +<code><a href="storageLevel.html">storageLevel</a></code>, +<code><a href="storageLevel.html">storageLevel,SparkDataFrame-method</a></code>; +<code><a href="str.html">str</a></code>, +<code><a href="str.html">str,SparkDataFrame-method</a></code>; +<code><a href="take.html">take</a></code>, <code><a href="take.html">take</a></code>, +<code><a href="take.html">take,SparkDataFrame,numeric-method</a></code>; +<code><a href="toJSON.html">toJSON</a></code>, +<code><a href="toJSON.html">toJSON,SparkDataFrame-method</a></code>; +<code><a href="union.html">union</a></code>, <code><a href="union.html">union</a></code>, +<code><a href="union.html">union,SparkDataFrame,SparkDataFrame-method</a></code>, +<code><a href="union.html">unionAll</a></code>, <code><a href="union.html">unionAll</a></code>, +<code><a href="union.html">unionAll,SparkDataFrame,SparkDataFrame-method</a></code>; +<code><a href="unpersist.html">unpersist</a></code>, <code><a href="unpersist.html">unpersist</a></code>, +<code><a href="unpersist.html">unpersist,SparkDataFrame-method</a></code>; +<code><a href="withColumn.html">withColumn</a></code>, <code><a href="withColumn.html">withColumn</a></code>, +<code><a href="withColumn.html">withColumn,SparkDataFrame,character-method</a></code>; +<code><a href="with.html">with</a></code>, +<code><a href="with.html">with,SparkDataFrame-method</a></code>; +<code><a href="write.jdbc.html">write.jdbc</a></code>, <code><a href="write.jdbc.html">write.jdbc</a></code>, +<code><a href="write.jdbc.html">write.jdbc,SparkDataFrame,character,character-method</a></code>; +<code><a href="write.json.html">write.json</a></code>, <code><a href="write.json.html">write.json</a></code>, +<code><a href="write.json.html">write.json,SparkDataFrame,character-method</a></code>; +<code><a href="write.orc.html">write.orc</a></code>, <code><a href="write.orc.html">write.orc</a></code>, +<code><a href="write.orc.html">write.orc,SparkDataFrame,character-method</a></code>; +<code><a href="write.stream.html">write.stream</a></code>, <code><a href="write.stream.html">write.stream</a></code>, +<code><a href="write.stream.html">write.stream,SparkDataFrame-method</a></code>; +<code><a href="write.text.html">write.text</a></code>, <code><a href="write.text.html">write.text</a></code>, +<code><a href="write.text.html">write.text,SparkDataFrame,character-method</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D df <- createDataFrame(iris) +##D ldf <- dapplyCollect(df, function(x) { x }) +##D +##D # filter and add a column +##D df <- createDataFrame( +##D list(list(1L, 1, "1"), list(2L, 2, "2"), list(3L, 3, "3")), +##D c("a", "b", "c")) +##D ldf <- dapplyCollect( +##D df, +##D function(x) { +##D y <- x[x[1] > 1, ] +##D y <- cbind(y, y[1] + 1L) +##D }) +##D # the result +##D # a b c d +##D # 2 2 2 3 +##D # 3 3 3 4 +## End(Not run) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/date_add.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/date_add.html b/site/docs/2.2.0/api/R/date_add.html new file mode 100644 index 0000000..1009484 --- /dev/null +++ b/site/docs/2.2.0/api/R/date_add.html @@ -0,0 +1,122 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: date_add</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 date_add {SparkR}"><tr><td>date_add {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>date_add</h2> + +<h3>Description</h3> + +<p>Returns the date that is <code>x</code> days after +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column,numeric' +date_add(y, x) + +date_add(y, x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>y</code></td> +<td> +<p>Column to compute on</p> +</td></tr> +<tr valign="top"><td><code>x</code></td> +<td> +<p>Number of days to add</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>date_add since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other datetime_funcs: <code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months,Column,numeric-method</a></code>; +<code><a href="date_format.html">date_format</a></code>, <code><a href="date_format.html">date_format</a></code>, +<code><a href="date_format.html">date_format,Column,character-method</a></code>; +<code><a href="date_sub.html">date_sub</a></code>, <code><a href="date_sub.html">date_sub</a></code>, +<code><a href="date_sub.html">date_sub,Column,numeric-method</a></code>; +<code><a href="datediff.html">datediff</a></code>, <code><a href="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff,Column-method</a></code>; +<code><a href="dayofmonth.html">dayofmonth</a></code>, <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth,Column-method</a></code>; +<code><a href="dayofyear.html">dayofyear</a></code>, <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear,Column-method</a></code>; +<code><a href="from_unixtime.html">from_unixtime</a></code>, <code><a href="from_unixtime.html">from_unixtime</a></code>, +<code><a href="from_unixtime.html">from_unixtime,Column-method</a></code>; +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp,Column,character-method</a></code>; +<code><a href="hour.html">hour</a></code>, <code><a href="hour.html">hour</a></code>, +<code><a href="hour.html">hour,Column-method</a></code>; <code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day,Column-method</a></code>; +<code><a href="minute.html">minute</a></code>, <code><a href="minute.html">minute</a></code>, +<code><a href="minute.html">minute,Column-method</a></code>; +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between,Column-method</a></code>; +<code><a href="month.html">month</a></code>, <code><a href="month.html">month</a></code>, +<code><a href="month.html">month,Column-method</a></code>; +<code><a href="next_day.html">next_day</a></code>, <code><a href="next_day.html">next_day</a></code>, +<code><a href="next_day.html">next_day,Column,character-method</a></code>; +<code><a href="quarter.html">quarter</a></code>, <code><a href="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter,Column-method</a></code>; +<code><a href="second.html">second</a></code>, <code><a href="second.html">second</a></code>, +<code><a href="second.html">second,Column-method</a></code>; +<code><a href="to_date.html">to_date</a></code>, <code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date,Column,character-method</a></code>, +<code><a href="to_date.html">to_date,Column,missing-method</a></code>; +<code><a href="to_timestamp.html">to_timestamp</a></code>, <code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,character-method</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,missing-method</a></code>; +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp,Column,character-method</a></code>; +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,character-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,missing-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,missing,missing-method</a></code>; +<code><a href="weekofyear.html">weekofyear</a></code>, <code><a href="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear,Column-method</a></code>; +<code><a href="window.html">window</a></code>, <code><a href="window.html">window</a></code>, +<code><a href="window.html">window,Column-method</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code>, <code><a href="year.html">year,Column-method</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: date_add(df$d, 1) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/date_format.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/date_format.html b/site/docs/2.2.0/api/R/date_format.html new file mode 100644 index 0000000..5977f14 --- /dev/null +++ b/site/docs/2.2.0/api/R/date_format.html @@ -0,0 +1,132 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: date_format</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 date_format {SparkR}"><tr><td>date_format {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>date_format</h2> + +<h3>Description</h3> + +<p>Converts a date/timestamp/string to a value of string in the format specified by the date +format given by the second argument. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column,character' +date_format(y, x) + +date_format(y, x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>y</code></td> +<td> +<p>Column to compute on.</p> +</td></tr> +<tr valign="top"><td><code>x</code></td> +<td> +<p>date format specification.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>A pattern could be for instance </p> +<PRE>dd.MM.yyyy</PRE> and could return a string like '18.03.1993'. All +pattern letters of <code>java.text.SimpleDateFormat</code> can be used. +Note: Use when ever possible specialized functions like <code>year</code>. These benefit from a +specialized implementation. + + +<h3>Note</h3> + +<p>date_format since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other datetime_funcs: <code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months,Column,numeric-method</a></code>; +<code><a href="date_add.html">date_add</a></code>, <code><a href="date_add.html">date_add</a></code>, +<code><a href="date_add.html">date_add,Column,numeric-method</a></code>; +<code><a href="date_sub.html">date_sub</a></code>, <code><a href="date_sub.html">date_sub</a></code>, +<code><a href="date_sub.html">date_sub,Column,numeric-method</a></code>; +<code><a href="datediff.html">datediff</a></code>, <code><a href="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff,Column-method</a></code>; +<code><a href="dayofmonth.html">dayofmonth</a></code>, <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth,Column-method</a></code>; +<code><a href="dayofyear.html">dayofyear</a></code>, <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear,Column-method</a></code>; +<code><a href="from_unixtime.html">from_unixtime</a></code>, <code><a href="from_unixtime.html">from_unixtime</a></code>, +<code><a href="from_unixtime.html">from_unixtime,Column-method</a></code>; +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp,Column,character-method</a></code>; +<code><a href="hour.html">hour</a></code>, <code><a href="hour.html">hour</a></code>, +<code><a href="hour.html">hour,Column-method</a></code>; <code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day,Column-method</a></code>; +<code><a href="minute.html">minute</a></code>, <code><a href="minute.html">minute</a></code>, +<code><a href="minute.html">minute,Column-method</a></code>; +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between,Column-method</a></code>; +<code><a href="month.html">month</a></code>, <code><a href="month.html">month</a></code>, +<code><a href="month.html">month,Column-method</a></code>; +<code><a href="next_day.html">next_day</a></code>, <code><a href="next_day.html">next_day</a></code>, +<code><a href="next_day.html">next_day,Column,character-method</a></code>; +<code><a href="quarter.html">quarter</a></code>, <code><a href="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter,Column-method</a></code>; +<code><a href="second.html">second</a></code>, <code><a href="second.html">second</a></code>, +<code><a href="second.html">second,Column-method</a></code>; +<code><a href="to_date.html">to_date</a></code>, <code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date,Column,character-method</a></code>, +<code><a href="to_date.html">to_date,Column,missing-method</a></code>; +<code><a href="to_timestamp.html">to_timestamp</a></code>, <code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,character-method</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,missing-method</a></code>; +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp,Column,character-method</a></code>; +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,character-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,missing-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,missing,missing-method</a></code>; +<code><a href="weekofyear.html">weekofyear</a></code>, <code><a href="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear,Column-method</a></code>; +<code><a href="window.html">window</a></code>, <code><a href="window.html">window</a></code>, +<code><a href="window.html">window,Column-method</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code>, <code><a href="year.html">year,Column-method</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: date_format(df$t, 'MM/dd/yyy') +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/date_sub.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/date_sub.html b/site/docs/2.2.0/api/R/date_sub.html new file mode 100644 index 0000000..0a56904 --- /dev/null +++ b/site/docs/2.2.0/api/R/date_sub.html @@ -0,0 +1,122 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: date_sub</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 date_sub {SparkR}"><tr><td>date_sub {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>date_sub</h2> + +<h3>Description</h3> + +<p>Returns the date that is <code>x</code> days before +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column,numeric' +date_sub(y, x) + +date_sub(y, x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>y</code></td> +<td> +<p>Column to compute on</p> +</td></tr> +<tr valign="top"><td><code>x</code></td> +<td> +<p>Number of days to substract</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>date_sub since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other datetime_funcs: <code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months,Column,numeric-method</a></code>; +<code><a href="date_add.html">date_add</a></code>, <code><a href="date_add.html">date_add</a></code>, +<code><a href="date_add.html">date_add,Column,numeric-method</a></code>; +<code><a href="date_format.html">date_format</a></code>, <code><a href="date_format.html">date_format</a></code>, +<code><a href="date_format.html">date_format,Column,character-method</a></code>; +<code><a href="datediff.html">datediff</a></code>, <code><a href="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff,Column-method</a></code>; +<code><a href="dayofmonth.html">dayofmonth</a></code>, <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth,Column-method</a></code>; +<code><a href="dayofyear.html">dayofyear</a></code>, <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear,Column-method</a></code>; +<code><a href="from_unixtime.html">from_unixtime</a></code>, <code><a href="from_unixtime.html">from_unixtime</a></code>, +<code><a href="from_unixtime.html">from_unixtime,Column-method</a></code>; +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp,Column,character-method</a></code>; +<code><a href="hour.html">hour</a></code>, <code><a href="hour.html">hour</a></code>, +<code><a href="hour.html">hour,Column-method</a></code>; <code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day,Column-method</a></code>; +<code><a href="minute.html">minute</a></code>, <code><a href="minute.html">minute</a></code>, +<code><a href="minute.html">minute,Column-method</a></code>; +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between,Column-method</a></code>; +<code><a href="month.html">month</a></code>, <code><a href="month.html">month</a></code>, +<code><a href="month.html">month,Column-method</a></code>; +<code><a href="next_day.html">next_day</a></code>, <code><a href="next_day.html">next_day</a></code>, +<code><a href="next_day.html">next_day,Column,character-method</a></code>; +<code><a href="quarter.html">quarter</a></code>, <code><a href="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter,Column-method</a></code>; +<code><a href="second.html">second</a></code>, <code><a href="second.html">second</a></code>, +<code><a href="second.html">second,Column-method</a></code>; +<code><a href="to_date.html">to_date</a></code>, <code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date,Column,character-method</a></code>, +<code><a href="to_date.html">to_date,Column,missing-method</a></code>; +<code><a href="to_timestamp.html">to_timestamp</a></code>, <code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,character-method</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,missing-method</a></code>; +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp,Column,character-method</a></code>; +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,character-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,missing-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,missing,missing-method</a></code>; +<code><a href="weekofyear.html">weekofyear</a></code>, <code><a href="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear,Column-method</a></code>; +<code><a href="window.html">window</a></code>, <code><a href="window.html">window</a></code>, +<code><a href="window.html">window,Column-method</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code>, <code><a href="year.html">year,Column-method</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: date_sub(df$d, 1) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/datediff.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/datediff.html b/site/docs/2.2.0/api/R/datediff.html new file mode 100644 index 0000000..54ce163 --- /dev/null +++ b/site/docs/2.2.0/api/R/datediff.html @@ -0,0 +1,122 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: datediff</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 datediff {SparkR}"><tr><td>datediff {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>datediff</h2> + +<h3>Description</h3> + +<p>Returns the number of days from <code>start</code> to <code>end</code>. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +datediff(y, x) + +datediff(y, x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>y</code></td> +<td> +<p>end Column to use.</p> +</td></tr> +<tr valign="top"><td><code>x</code></td> +<td> +<p>start Column to use.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>datediff since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other datetime_funcs: <code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months,Column,numeric-method</a></code>; +<code><a href="date_add.html">date_add</a></code>, <code><a href="date_add.html">date_add</a></code>, +<code><a href="date_add.html">date_add,Column,numeric-method</a></code>; +<code><a href="date_format.html">date_format</a></code>, <code><a href="date_format.html">date_format</a></code>, +<code><a href="date_format.html">date_format,Column,character-method</a></code>; +<code><a href="date_sub.html">date_sub</a></code>, <code><a href="date_sub.html">date_sub</a></code>, +<code><a href="date_sub.html">date_sub,Column,numeric-method</a></code>; +<code><a href="dayofmonth.html">dayofmonth</a></code>, <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth,Column-method</a></code>; +<code><a href="dayofyear.html">dayofyear</a></code>, <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear,Column-method</a></code>; +<code><a href="from_unixtime.html">from_unixtime</a></code>, <code><a href="from_unixtime.html">from_unixtime</a></code>, +<code><a href="from_unixtime.html">from_unixtime,Column-method</a></code>; +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp,Column,character-method</a></code>; +<code><a href="hour.html">hour</a></code>, <code><a href="hour.html">hour</a></code>, +<code><a href="hour.html">hour,Column-method</a></code>; <code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day,Column-method</a></code>; +<code><a href="minute.html">minute</a></code>, <code><a href="minute.html">minute</a></code>, +<code><a href="minute.html">minute,Column-method</a></code>; +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between,Column-method</a></code>; +<code><a href="month.html">month</a></code>, <code><a href="month.html">month</a></code>, +<code><a href="month.html">month,Column-method</a></code>; +<code><a href="next_day.html">next_day</a></code>, <code><a href="next_day.html">next_day</a></code>, +<code><a href="next_day.html">next_day,Column,character-method</a></code>; +<code><a href="quarter.html">quarter</a></code>, <code><a href="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter,Column-method</a></code>; +<code><a href="second.html">second</a></code>, <code><a href="second.html">second</a></code>, +<code><a href="second.html">second,Column-method</a></code>; +<code><a href="to_date.html">to_date</a></code>, <code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date,Column,character-method</a></code>, +<code><a href="to_date.html">to_date,Column,missing-method</a></code>; +<code><a href="to_timestamp.html">to_timestamp</a></code>, <code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,character-method</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,missing-method</a></code>; +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp,Column,character-method</a></code>; +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,character-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,missing-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,missing,missing-method</a></code>; +<code><a href="weekofyear.html">weekofyear</a></code>, <code><a href="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear,Column-method</a></code>; +<code><a href="window.html">window</a></code>, <code><a href="window.html">window</a></code>, +<code><a href="window.html">window,Column-method</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code>, <code><a href="year.html">year,Column-method</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: datediff(df$c, x) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <a href="00Index.html">Index</a>]</div> +</body></html> http://git-wip-us.apache.org/repos/asf/spark-website/blob/f7ec1155/site/docs/2.2.0/api/R/dayofmonth.html ---------------------------------------------------------------------- diff --git a/site/docs/2.2.0/api/R/dayofmonth.html b/site/docs/2.2.0/api/R/dayofmonth.html new file mode 100644 index 0000000..fdf7f6a --- /dev/null +++ b/site/docs/2.2.0/api/R/dayofmonth.html @@ -0,0 +1,118 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><title>R: dayofmonth</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 dayofmonth {SparkR}"><tr><td>dayofmonth {SparkR}</td><td align="right">R Documentation</td></tr></table> + +<h2>dayofmonth</h2> + +<h3>Description</h3> + +<p>Extracts the day of the month as an integer from a given date/timestamp/string. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +dayofmonth(x) + +dayofmonth(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>dayofmonth since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other datetime_funcs: <code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months</a></code>, +<code><a href="add_months.html">add_months,Column,numeric-method</a></code>; +<code><a href="date_add.html">date_add</a></code>, <code><a href="date_add.html">date_add</a></code>, +<code><a href="date_add.html">date_add,Column,numeric-method</a></code>; +<code><a href="date_format.html">date_format</a></code>, <code><a href="date_format.html">date_format</a></code>, +<code><a href="date_format.html">date_format,Column,character-method</a></code>; +<code><a href="date_sub.html">date_sub</a></code>, <code><a href="date_sub.html">date_sub</a></code>, +<code><a href="date_sub.html">date_sub,Column,numeric-method</a></code>; +<code><a href="datediff.html">datediff</a></code>, <code><a href="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff,Column-method</a></code>; +<code><a href="dayofyear.html">dayofyear</a></code>, <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear,Column-method</a></code>; +<code><a href="from_unixtime.html">from_unixtime</a></code>, <code><a href="from_unixtime.html">from_unixtime</a></code>, +<code><a href="from_unixtime.html">from_unixtime,Column-method</a></code>; +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp,Column,character-method</a></code>; +<code><a href="hour.html">hour</a></code>, <code><a href="hour.html">hour</a></code>, +<code><a href="hour.html">hour,Column-method</a></code>; <code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day</a></code>, +<code><a href="last_day.html">last_day,Column-method</a></code>; +<code><a href="minute.html">minute</a></code>, <code><a href="minute.html">minute</a></code>, +<code><a href="minute.html">minute,Column-method</a></code>; +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between</a></code>, +<code><a href="months_between.html">months_between,Column-method</a></code>; +<code><a href="month.html">month</a></code>, <code><a href="month.html">month</a></code>, +<code><a href="month.html">month,Column-method</a></code>; +<code><a href="next_day.html">next_day</a></code>, <code><a href="next_day.html">next_day</a></code>, +<code><a href="next_day.html">next_day,Column,character-method</a></code>; +<code><a href="quarter.html">quarter</a></code>, <code><a href="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter,Column-method</a></code>; +<code><a href="second.html">second</a></code>, <code><a href="second.html">second</a></code>, +<code><a href="second.html">second,Column-method</a></code>; +<code><a href="to_date.html">to_date</a></code>, <code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date</a></code>, +<code><a href="to_date.html">to_date,Column,character-method</a></code>, +<code><a href="to_date.html">to_date,Column,missing-method</a></code>; +<code><a href="to_timestamp.html">to_timestamp</a></code>, <code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,character-method</a></code>, +<code><a href="to_timestamp.html">to_timestamp,Column,missing-method</a></code>; +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="to_utc_timestamp.html">to_utc_timestamp,Column,character-method</a></code>; +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,character-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,Column,missing-method</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp,missing,missing-method</a></code>; +<code><a href="weekofyear.html">weekofyear</a></code>, <code><a href="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear,Column-method</a></code>; +<code><a href="window.html">window</a></code>, <code><a href="window.html">window</a></code>, +<code><a href="window.html">window,Column-method</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code>, <code><a href="year.html">year,Column-method</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: dayofmonth(df$c) +</code></pre> + + +<hr><div align="center">[Package <em>SparkR</em> version 2.2.0 <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