http://git-wip-us.apache.org/repos/asf/spark-website/blob/3a634959/site/docs/2.1.3/api/R/sd.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sd.html b/site/docs/2.1.3/api/R/sd.html new file mode 100644 index 0000000..3373251 --- /dev/null +++ b/site/docs/2.1.3/api/R/sd.html @@ -0,0 +1,85 @@ +<!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: sd</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 sd {SparkR}"><tr><td>sd {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>sd</h2> + +<h3>Description</h3> + +<p>Aggregate function: alias for <a href="stddev_samp.html">stddev_samp</a> +</p> + + +<h3>Usage</h3> + +<pre> +sd(x, na.rm = FALSE) + +stddev(x) + +## S4 method for signature 'Column' +sd(x) + +## S4 method for signature 'Column' +stddev(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> +<tr valign="top"><td><code>na.rm</code></td> +<td> +<p>currently not used.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>sd since 1.6.0 +</p> +<p>stddev since 1.6.0 +</p> + + +<h3>See Also</h3> + +<p><a href="stddev_pop.html">stddev_pop</a>, <a href="stddev_samp.html">stddev_samp</a> +</p> +<p>Other agg_funcs: <code><a href="summarize.html">agg</a></code>, <code><a href="avg.html">avg</a></code>, +<code><a href="countDistinct.html">countDistinct</a></code>, <code><a href="count.html">count</a></code>, +<code><a href="first.html">first</a></code>, <code><a href="kurtosis.html">kurtosis</a></code>, +<code><a href="last.html">last</a></code>, <code><a href="max.html">max</a></code>, +<code><a href="mean.html">mean</a></code>, <code><a href="min.html">min</a></code>, +<code><a href="skewness.html">skewness</a></code>, <code><a href="stddev_pop.html">stddev_pop</a></code>, +<code><a href="stddev_samp.html">stddev_samp</a></code>, <code><a href="sumDistinct.html">sumDistinct</a></code>, +<code><a href="sum.html">sum</a></code>, <code><a href="var_pop.html">var_pop</a></code>, +<code><a href="var_samp.html">var_samp</a></code>, <code><a href="var.html">var</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D stddev(df$c) +##D select(df, stddev(df$age)) +##D agg(df, sd(df$age)) +## 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/second.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/second.html b/site/docs/2.1.3/api/R/second.html new file mode 100644 index 0000000..daad9f3 --- /dev/null +++ b/site/docs/2.1.3/api/R/second.html @@ -0,0 +1,71 @@ +<!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: second</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 second {SparkR}"><tr><td>second {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>second</h2> + +<h3>Description</h3> + +<p>Extracts the seconds as an integer from a given date/timestamp/string. +</p> + + +<h3>Usage</h3> + +<pre> +second(x) + +## S4 method for signature 'Column' +second(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>second 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="date_add.html">date_add</a></code>, <code><a href="date_format.html">date_format</a></code>, +<code><a href="date_sub.html">date_sub</a></code>, <code><a href="datediff.html">datediff</a></code>, +<code><a href="dayofmonth.html">dayofmonth</a></code>, <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="from_unixtime.html">from_unixtime</a></code>, +<code><a href="from_utc_timestamp.html">from_utc_timestamp</a></code>, <code><a href="hour.html">hour</a></code>, +<code><a href="last_day.html">last_day</a></code>, <code><a href="minute.html">minute</a></code>, +<code><a href="months_between.html">months_between</a></code>, <code><a href="month.html">month</a></code>, +<code><a href="next_day.html">next_day</a></code>, <code><a href="quarter.html">quarter</a></code>, +<code><a href="to_date.html">to_date</a></code>, <code><a href="to_utc_timestamp.html">to_utc_timestamp</a></code>, +<code><a href="unix_timestamp.html">unix_timestamp</a></code>, <code><a href="weekofyear.html">weekofyear</a></code>, +<code><a href="window.html">window</a></code>, <code><a href="year.html">year</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: second(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/select.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/select.html b/site/docs/2.1.3/api/R/select.html new file mode 100644 index 0000000..e765fd8 --- /dev/null +++ b/site/docs/2.1.3/api/R/select.html @@ -0,0 +1,150 @@ +<!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: Select</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 select {SparkR}"><tr><td>select {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Select</h2> + +<h3>Description</h3> + +<p>Selects a set of columns with names or Column expressions. +</p> + + +<h3>Usage</h3> + +<pre> +select(x, col, ...) + +## S4 method for signature 'SparkDataFrame' +x$name + +## S4 replacement method for signature 'SparkDataFrame' +x$name <- value + +## S4 method for signature 'SparkDataFrame,character' +select(x, col, ...) + +## S4 method for signature 'SparkDataFrame,Column' +select(x, col, ...) + +## S4 method for signature 'SparkDataFrame,list' +select(x, col) +</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>a list of columns or single Column or name.</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional column(s) if only one column is specified in <code>col</code>. +If more than one column is assigned in <code>col</code>, <code>...</code> +should be left empty.</p> +</td></tr> +<tr valign="top"><td><code>name</code></td> +<td> +<p>name of a Column (without being wrapped by <code>""</code>).</p> +</td></tr> +<tr valign="top"><td><code>value</code></td> +<td> +<p>a Column or an atomic vector in the length of 1 as literal value, or <code>NULL</code>. +If <code>NULL</code>, the specified Column is dropped.</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A new SparkDataFrame with selected columns. +</p> + + +<h3>Note</h3> + +<p>$ since 1.4.0 +</p> +<p>$<- since 1.4.0 +</p> +<p>select(SparkDataFrame, character) since 1.4.0 +</p> +<p>select(SparkDataFrame, Column) since 1.4.0 +</p> +<p>select(SparkDataFrame, list) 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="schema.html">schema</a></code>, <code><a href="selectExpr.html">selectExpr</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> +<p>Other subsetting functions: <code><a href="filter.html">filter</a></code>, +<code><a href="subset.html">subset</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D select(df, "*") +##D select(df, "col1", "col2") +##D select(df, df$name, df$age + 1) +##D select(df, c("col1", "col2")) +##D select(df, list(df$name, df$age + 1)) +##D # Similar to R data frames columns can also be selected using $ +##D df[,df$age] +## 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/selectExpr.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/selectExpr.html b/site/docs/2.1.3/api/R/selectExpr.html new file mode 100644 index 0000000..982eccf --- /dev/null +++ b/site/docs/2.1.3/api/R/selectExpr.html @@ -0,0 +1,113 @@ +<!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: SelectExpr</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 selectExpr {SparkR}"><tr><td>selectExpr {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>SelectExpr</h2> + +<h3>Description</h3> + +<p>Select from a SparkDataFrame using a set of SQL expressions. +</p> + + +<h3>Usage</h3> + +<pre> +selectExpr(x, expr, ...) + +## S4 method for signature 'SparkDataFrame,character' +selectExpr(x, expr, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkDataFrame to be selected from.</p> +</td></tr> +<tr valign="top"><td><code>expr</code></td> +<td> +<p>A string containing a SQL expression</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>Additional expressions</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A SparkDataFrame +</p> + + +<h3>Note</h3> + +<p>selectExpr 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="schema.html">schema</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 selectExpr(df, "col1", "(col2 * 5) as newCol") +## 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/setJobGroup.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/setJobGroup.html b/site/docs/2.1.3/api/R/setJobGroup.html new file mode 100644 index 0000000..64755a4 --- /dev/null +++ b/site/docs/2.1.3/api/R/setJobGroup.html @@ -0,0 +1,65 @@ +<!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: Assigns a group ID to all the jobs started by this thread...</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 setJobGroup {SparkR}"><tr><td>setJobGroup {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Assigns a group ID to all the jobs started by this thread until the group ID is set to a +different value or cleared.</h2> + +<h3>Description</h3> + +<p>Assigns a group ID to all the jobs started by this thread until the group ID is set to a +different value or cleared. +</p> + + +<h3>Usage</h3> + +<pre> +## Default S3 method: +setJobGroup(groupId, description, interruptOnCancel) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>groupId</code></td> +<td> +<p>the ID to be assigned to job groups.</p> +</td></tr> +<tr valign="top"><td><code>description</code></td> +<td> +<p>description for the job group ID.</p> +</td></tr> +<tr valign="top"><td><code>interruptOnCancel</code></td> +<td> +<p>flag to indicate if the job is interrupted on job cancellation.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>setJobGroup since 1.5.0 +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D setJobGroup("myJobGroup", "My job group description", 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/setLogLevel.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/setLogLevel.html b/site/docs/2.1.3/api/R/setLogLevel.html new file mode 100644 index 0000000..03d6d64 --- /dev/null +++ b/site/docs/2.1.3/api/R/setLogLevel.html @@ -0,0 +1,53 @@ +<!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: Set new log level</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 setLogLevel {SparkR}"><tr><td>setLogLevel {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Set new log level</h2> + +<h3>Description</h3> + +<p>Set new log level: "ALL", "DEBUG", "ERROR", "FATAL", "INFO", "OFF", "TRACE", "WARN" +</p> + + +<h3>Usage</h3> + +<pre> +setLogLevel(level) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>level</code></td> +<td> +<p>New log level</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>setLogLevel since 2.0.0 +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D setLogLevel("ERROR") +## 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/sha1.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sha1.html b/site/docs/2.1.3/api/R/sha1.html new file mode 100644 index 0000000..5778c6f --- /dev/null +++ b/site/docs/2.1.3/api/R/sha1.html @@ -0,0 +1,64 @@ +<!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: sha1</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 sha1 {SparkR}"><tr><td>sha1 {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>sha1</h2> + +<h3>Description</h3> + +<p>Calculates the SHA-1 digest of a binary column and returns the value +as a 40 character hex string. +</p> + + +<h3>Usage</h3> + +<pre> +sha1(x) + +## S4 method for signature 'Column' +sha1(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>sha1 since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other misc_funcs: <code><a href="crc32.html">crc32</a></code>, <code><a href="hash.html">hash</a></code>, +<code><a href="md5.html">md5</a></code>, +<code><a href="monotonically_increasing_id.html">monotonically_increasing_id</a></code>, +<code><a href="sha2.html">sha2</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: sha1(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/sha2.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sha2.html b/site/docs/2.1.3/api/R/sha2.html new file mode 100644 index 0000000..48ede60 --- /dev/null +++ b/site/docs/2.1.3/api/R/sha2.html @@ -0,0 +1,68 @@ +<!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: sha2</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 sha2 {SparkR}"><tr><td>sha2 {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>sha2</h2> + +<h3>Description</h3> + +<p>Calculates the SHA-2 family of hash functions of a binary column and +returns the value as a hex string. +</p> + + +<h3>Usage</h3> + +<pre> +sha2(y, x) + +## S4 method for signature 'Column,numeric' +sha2(y, x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>y</code></td> +<td> +<p>column to compute SHA-2 on.</p> +</td></tr> +<tr valign="top"><td><code>x</code></td> +<td> +<p>one of 224, 256, 384, or 512.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>sha2 since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other misc_funcs: <code><a href="crc32.html">crc32</a></code>, <code><a href="hash.html">hash</a></code>, +<code><a href="md5.html">md5</a></code>, +<code><a href="monotonically_increasing_id.html">monotonically_increasing_id</a></code>, +<code><a href="sha1.html">sha1</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: sha2(df$c, 256) +</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/shiftLeft.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/shiftLeft.html b/site/docs/2.1.3/api/R/shiftLeft.html new file mode 100644 index 0000000..064e5ce --- /dev/null +++ b/site/docs/2.1.3/api/R/shiftLeft.html @@ -0,0 +1,83 @@ +<!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: shiftLeft</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 shiftLeft {SparkR}"><tr><td>shiftLeft {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>shiftLeft</h2> + +<h3>Description</h3> + +<p>Shift the given value numBits left. If the given value is a long value, this function +will return a long value else it will return an integer value. +</p> + + +<h3>Usage</h3> + +<pre> +shiftLeft(y, x) + +## S4 method for signature 'Column,numeric' +shiftLeft(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 bits to shift.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>shiftLeft 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="round.html">round</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: shiftLeft(df$c, 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/shiftRight.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/shiftRight.html b/site/docs/2.1.3/api/R/shiftRight.html new file mode 100644 index 0000000..ae0ab37 --- /dev/null +++ b/site/docs/2.1.3/api/R/shiftRight.html @@ -0,0 +1,83 @@ +<!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: shiftRight</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 shiftRight {SparkR}"><tr><td>shiftRight {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>shiftRight</h2> + +<h3>Description</h3> + +<p>(Signed) shift the given value numBits right. If the given value is a long value, it will return +a long value else it will return an integer value. +</p> + + +<h3>Usage</h3> + +<pre> +shiftRight(y, x) + +## S4 method for signature 'Column,numeric' +shiftRight(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 bits to shift.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>shiftRight 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="round.html">round</a></code>, <code><a href="shiftLeft.html">shiftLeft</a></code>, +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</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: shiftRight(df$c, 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/shiftRightUnsigned.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/shiftRightUnsigned.html b/site/docs/2.1.3/api/R/shiftRightUnsigned.html new file mode 100644 index 0000000..a4502d1 --- /dev/null +++ b/site/docs/2.1.3/api/R/shiftRightUnsigned.html @@ -0,0 +1,83 @@ +<!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: shiftRightUnsigned</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 shiftRightUnsigned {SparkR}"><tr><td>shiftRightUnsigned {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>shiftRightUnsigned</h2> + +<h3>Description</h3> + +<p>Unsigned shift the given value numBits right. If the given value is a long value, +it will return a long value else it will return an integer value. +</p> + + +<h3>Usage</h3> + +<pre> +shiftRightUnsigned(y, x) + +## S4 method for signature 'Column,numeric' +shiftRightUnsigned(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 bits to shift.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>shiftRightUnsigned 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="round.html">round</a></code>, <code><a href="shiftLeft.html">shiftLeft</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: shiftRightUnsigned(df$c, 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/show.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/show.html b/site/docs/2.1.3/api/R/show.html new file mode 100644 index 0000000..98116ec --- /dev/null +++ b/site/docs/2.1.3/api/R/show.html @@ -0,0 +1,112 @@ +<!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: show</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 show {SparkR}"><tr><td>show {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>show</h2> + +<h3>Description</h3> + +<p>Print class and type information of a Spark object. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +show(object) + +## S4 method for signature 'GroupedData' +show(object) + +## S4 method for signature 'SparkDataFrame' +show(object) + +## S4 method for signature 'WindowSpec' +show(object) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>object</code></td> +<td> +<p>a Spark object. Can be a SparkDataFrame, Column, GroupedData, WindowSpec.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>show(Column) since 1.4.0 +</p> +<p>show(GroupedData) since 1.4.0 +</p> +<p>show(SparkDataFrame) since 1.4.0 +</p> +<p>show(WindowSpec) since 2.0.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="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="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 show(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/showDF.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/showDF.html b/site/docs/2.1.3/api/R/showDF.html new file mode 100644 index 0000000..349d2bb --- /dev/null +++ b/site/docs/2.1.3/api/R/showDF.html @@ -0,0 +1,114 @@ +<!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: showDF</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 showDF {SparkR}"><tr><td>showDF {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>showDF</h2> + +<h3>Description</h3> + +<p>Print the first numRows rows of a SparkDataFrame +</p> + + +<h3>Usage</h3> + +<pre> +showDF(x, ...) + +## S4 method for signature 'SparkDataFrame' +showDF(x, numRows = 20, truncate = TRUE) +</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>further arguments to be passed to or from other methods.</p> +</td></tr> +<tr valign="top"><td><code>numRows</code></td> +<td> +<p>the number of rows to print. Defaults to 20.</p> +</td></tr> +<tr valign="top"><td><code>truncate</code></td> +<td> +<p>whether truncate long strings. If <code>TRUE</code>, strings more than +20 characters will be truncated. However, if set greater than zero, +truncates strings longer than <code>truncate</code> characters and all cells +will be aligned right.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>showDF 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="schema.html">schema</a></code>, <code><a href="selectExpr.html">selectExpr</a></code>, +<code><a href="select.html">select</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 showDF(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/sign.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sign.html b/site/docs/2.1.3/api/R/sign.html new file mode 100644 index 0000000..13929e6 --- /dev/null +++ b/site/docs/2.1.3/api/R/sign.html @@ -0,0 +1,85 @@ +<!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: signum</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 signum {SparkR}"><tr><td>signum {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>signum</h2> + +<h3>Description</h3> + +<p>Computes the signum of the given value. +</p> + + +<h3>Usage</h3> + +<pre> +signum(x) + +## S4 method for signature 'Column' +signum(x) + +## S4 method for signature 'Column' +sign(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>signum since 1.5.0 +</p> +<p>sign 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="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="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: signum(df$c) +## Not run: sign(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/sin.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sin.html b/site/docs/2.1.3/api/R/sin.html new file mode 100644 index 0000000..8ab2b01 --- /dev/null +++ b/site/docs/2.1.3/api/R/sin.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: sin</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 sin {SparkR}"><tr><td>sin {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>sin</h2> + +<h3>Description</h3> + +<p>Computes the sine of the given value. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +sin(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>sin 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="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="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: sin(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/sinh.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sinh.html b/site/docs/2.1.3/api/R/sinh.html new file mode 100644 index 0000000..fdbfd61 --- /dev/null +++ b/site/docs/2.1.3/api/R/sinh.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: sinh</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 sinh {SparkR}"><tr><td>sinh {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>sinh</h2> + +<h3>Description</h3> + +<p>Computes the hyperbolic sine of the given value. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +sinh(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>sinh 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="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="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: sinh(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/size.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/size.html b/site/docs/2.1.3/api/R/size.html new file mode 100644 index 0000000..73bb989 --- /dev/null +++ b/site/docs/2.1.3/api/R/size.html @@ -0,0 +1,62 @@ +<!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: size</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 size {SparkR}"><tr><td>size {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>size</h2> + +<h3>Description</h3> + +<p>Returns length of array or map. +</p> + + +<h3>Usage</h3> + +<pre> +size(x) + +## S4 method for signature 'Column' +size(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>size since 1.5.0 +</p> + + +<h3>See Also</h3> + +<p>Other collection_funcs: <code><a href="array_contains.html">array_contains</a></code>, +<code><a href="explode.html">explode</a></code>, <code><a href="posexplode.html">posexplode</a></code>, +<code><a href="sort_array.html">sort_array</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: size(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/skewness.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/skewness.html b/site/docs/2.1.3/api/R/skewness.html new file mode 100644 index 0000000..3b8caba --- /dev/null +++ b/site/docs/2.1.3/api/R/skewness.html @@ -0,0 +1,68 @@ +<!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: skewness</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 skewness {SparkR}"><tr><td>skewness {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>skewness</h2> + +<h3>Description</h3> + +<p>Aggregate function: returns the skewness of the values in a group. +</p> + + +<h3>Usage</h3> + +<pre> +skewness(x) + +## S4 method for signature 'Column' +skewness(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>skewness since 1.6.0 +</p> + + +<h3>See Also</h3> + +<p>Other agg_funcs: <code><a href="summarize.html">agg</a></code>, <code><a href="avg.html">avg</a></code>, +<code><a href="countDistinct.html">countDistinct</a></code>, <code><a href="count.html">count</a></code>, +<code><a href="first.html">first</a></code>, <code><a href="kurtosis.html">kurtosis</a></code>, +<code><a href="last.html">last</a></code>, <code><a href="max.html">max</a></code>, +<code><a href="mean.html">mean</a></code>, <code><a href="min.html">min</a></code>, <code><a href="sd.html">sd</a></code>, +<code><a href="stddev_pop.html">stddev_pop</a></code>, <code><a href="stddev_samp.html">stddev_samp</a></code>, +<code><a href="sumDistinct.html">sumDistinct</a></code>, <code><a href="sum.html">sum</a></code>, +<code><a href="var_pop.html">var_pop</a></code>, <code><a href="var_samp.html">var_samp</a></code>, +<code><a href="var.html">var</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: skewness(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/sort_array.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/sort_array.html b/site/docs/2.1.3/api/R/sort_array.html new file mode 100644 index 0000000..04965a0 --- /dev/null +++ b/site/docs/2.1.3/api/R/sort_array.html @@ -0,0 +1,72 @@ +<!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: sort_array</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 sort_array {SparkR}"><tr><td>sort_array {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>sort_array</h2> + +<h3>Description</h3> + +<p>Sorts the input array in ascending or descending order according +to the natural ordering of the array elements. +</p> + + +<h3>Usage</h3> + +<pre> +sort_array(x, asc = TRUE) + +## S4 method for signature 'Column' +sort_array(x, asc = TRUE) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A Column to sort</p> +</td></tr> +<tr valign="top"><td><code>asc</code></td> +<td> +<p>A logical flag indicating the sorting order. +TRUE, sorting is in ascending order. +FALSE, sorting is in descending order.</p> +</td></tr> +</table> + + +<h3>Note</h3> + +<p>sort_array since 1.6.0 +</p> + + +<h3>See Also</h3> + +<p>Other collection_funcs: <code><a href="array_contains.html">array_contains</a></code>, +<code><a href="explode.html">explode</a></code>, <code><a href="posexplode.html">posexplode</a></code>, +<code><a href="size.html">size</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sort_array(df$c) +##D sort_array(df$c, FALSE) +## 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/soundex.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/soundex.html b/site/docs/2.1.3/api/R/soundex.html new file mode 100644 index 0000000..aeba702 --- /dev/null +++ b/site/docs/2.1.3/api/R/soundex.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: soundex</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 soundex {SparkR}"><tr><td>soundex {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>soundex</h2> + +<h3>Description</h3> + +<p>Return the soundex code for the specified expression. +</p> + + +<h3>Usage</h3> + +<pre> +soundex(x) + +## S4 method for signature 'Column' +soundex(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>soundex 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="rtrim.html">rtrim</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: soundex(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/spark.addFile.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/spark.addFile.html b/site/docs/2.1.3/api/R/spark.addFile.html new file mode 100644 index 0000000..537f5aa --- /dev/null +++ b/site/docs/2.1.3/api/R/spark.addFile.html @@ -0,0 +1,67 @@ +<!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: Add a file or directory to be downloaded with this Spark job...</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 spark.addFile {SparkR}"><tr><td>spark.addFile {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Add a file or directory to be downloaded with this Spark job on every node.</h2> + +<h3>Description</h3> + +<p>The path passed can be either a local file, a file in HDFS (or other Hadoop-supported +filesystems), or an HTTP, HTTPS or FTP URI. To access the file in Spark jobs, +use spark.getSparkFiles(fileName) to find its download location. +</p> + + +<h3>Usage</h3> + +<pre> +spark.addFile(path, recursive = FALSE) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>path</code></td> +<td> +<p>The path of the file to be added</p> +</td></tr> +<tr valign="top"><td><code>recursive</code></td> +<td> +<p>Whether to add files recursively from the path. Default is FALSE.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>A directory can be given if the recursive option is set to true. +Currently directories are only supported for Hadoop-supported filesystems. +Refer Hadoop-supported filesystems at <a href="https://wiki.apache.org/hadoop/HCFS">https://wiki.apache.org/hadoop/HCFS</a>. +</p> + + +<h3>Note</h3> + +<p>spark.addFile since 2.1.0 +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D spark.addFile("~/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/spark.als.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/spark.als.html b/site/docs/2.1.3/api/R/spark.als.html new file mode 100644 index 0000000..be0a02c --- /dev/null +++ b/site/docs/2.1.3/api/R/spark.als.html @@ -0,0 +1,202 @@ +<!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: Alternating Least Squares (ALS) for Collaborative Filtering</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 spark.als {SparkR}"><tr><td>spark.als {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Alternating Least Squares (ALS) for Collaborative Filtering</h2> + +<h3>Description</h3> + +<p><code>spark.als</code> learns latent factors in collaborative filtering via alternating least +squares. Users can call <code>summary</code> to obtain fitted latent factors, <code>predict</code> +to make predictions on new data, and <code>write.ml</code>/<code>read.ml</code> to save/load fitted models. +</p> + + +<h3>Usage</h3> + +<pre> +spark.als(data, ...) + +## S4 method for signature 'SparkDataFrame' +spark.als(data, ratingCol = "rating", + userCol = "user", itemCol = "item", rank = 10, regParam = 0.1, + maxIter = 10, nonnegative = FALSE, implicitPrefs = FALSE, alpha = 1, + numUserBlocks = 10, numItemBlocks = 10, checkpointInterval = 10, + seed = 0) + +## S4 method for signature 'ALSModel' +summary(object) + +## S4 method for signature 'ALSModel' +predict(object, newData) + +## S4 method for signature 'ALSModel,character' +write.ml(object, path, overwrite = FALSE) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>data</code></td> +<td> +<p>a SparkDataFrame for training.</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional argument(s) passed to the method.</p> +</td></tr> +<tr valign="top"><td><code>ratingCol</code></td> +<td> +<p>column name for ratings.</p> +</td></tr> +<tr valign="top"><td><code>userCol</code></td> +<td> +<p>column name for user ids. Ids must be (or can be coerced into) integers.</p> +</td></tr> +<tr valign="top"><td><code>itemCol</code></td> +<td> +<p>column name for item ids. Ids must be (or can be coerced into) integers.</p> +</td></tr> +<tr valign="top"><td><code>rank</code></td> +<td> +<p>rank of the matrix factorization (> 0).</p> +</td></tr> +<tr valign="top"><td><code>regParam</code></td> +<td> +<p>regularization parameter (>= 0).</p> +</td></tr> +<tr valign="top"><td><code>maxIter</code></td> +<td> +<p>maximum number of iterations (>= 0).</p> +</td></tr> +<tr valign="top"><td><code>nonnegative</code></td> +<td> +<p>logical value indicating whether to apply nonnegativity constraints.</p> +</td></tr> +<tr valign="top"><td><code>implicitPrefs</code></td> +<td> +<p>logical value indicating whether to use implicit preference.</p> +</td></tr> +<tr valign="top"><td><code>alpha</code></td> +<td> +<p>alpha parameter in the implicit preference formulation (>= 0).</p> +</td></tr> +<tr valign="top"><td><code>numUserBlocks</code></td> +<td> +<p>number of user blocks used to parallelize computation (> 0).</p> +</td></tr> +<tr valign="top"><td><code>numItemBlocks</code></td> +<td> +<p>number of item blocks used to parallelize computation (> 0).</p> +</td></tr> +<tr valign="top"><td><code>checkpointInterval</code></td> +<td> +<p>number of checkpoint intervals (>= 1) or disable checkpoint (-1).</p> +</td></tr> +<tr valign="top"><td><code>seed</code></td> +<td> +<p>integer seed for random number generation.</p> +</td></tr> +<tr valign="top"><td><code>object</code></td> +<td> +<p>a fitted ALS model.</p> +</td></tr> +<tr valign="top"><td><code>newData</code></td> +<td> +<p>a SparkDataFrame for testing.</p> +</td></tr> +<tr valign="top"><td><code>path</code></td> +<td> +<p>the directory where the model is saved.</p> +</td></tr> +<tr valign="top"><td><code>overwrite</code></td> +<td> +<p>logical value indicating whether to overwrite if the output path +already exists. Default is FALSE which means throw exception +if the output path exists.</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>For more details, see +<a href="http://spark.apache.org/docs/latest/ml-collaborative-filtering.html">MLlib: +Collaborative Filtering</a>. +</p> + + +<h3>Value</h3> + +<p><code>spark.als</code> returns a fitted ALS model. +</p> +<p><code>summary</code> returns summary information of the fitted model, which is a list. +The list includes <code>user</code> (the names of the user column), +<code>item</code> (the item column), <code>rating</code> (the rating column), <code>userFactors</code> +(the estimated user factors), <code>itemFactors</code> (the estimated item factors), +and <code>rank</code> (rank of the matrix factorization model). +</p> +<p><code>predict</code> returns a SparkDataFrame containing predicted values. +</p> + + +<h3>Note</h3> + +<p>spark.als since 2.1.0 +</p> +<p>summary(ALSModel) since 2.1.0 +</p> +<p>predict(ALSModel) since 2.1.0 +</p> +<p>write.ml(ALSModel, character) since 2.1.0 +</p> + + +<h3>See Also</h3> + +<p><a href="read.ml.html">read.ml</a> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D ratings <- list(list(0, 0, 4.0), list(0, 1, 2.0), list(1, 1, 3.0), list(1, 2, 4.0), +##D list(2, 1, 1.0), list(2, 2, 5.0)) +##D df <- createDataFrame(ratings, c("user", "item", "rating")) +##D model <- spark.als(df, "rating", "user", "item") +##D +##D # extract latent factors +##D stats <- summary(model) +##D userFactors <- stats$userFactors +##D itemFactors <- stats$itemFactors +##D +##D # make predictions +##D predicted <- predict(model, df) +##D showDF(predicted) +##D +##D # save and load the model +##D path <- "path/to/model" +##D write.ml(model, path) +##D savedModel <- read.ml(path) +##D summary(savedModel) +##D +##D # set other arguments +##D modelS <- spark.als(df, "rating", "user", "item", rank = 20, +##D regParam = 0.1, nonnegative = TRUE) +##D statsS <- summary(modelS) +## 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/spark.gaussianMixture.html ---------------------------------------------------------------------- diff --git a/site/docs/2.1.3/api/R/spark.gaussianMixture.html b/site/docs/2.1.3/api/R/spark.gaussianMixture.html new file mode 100644 index 0000000..5a93b43 --- /dev/null +++ b/site/docs/2.1.3/api/R/spark.gaussianMixture.html @@ -0,0 +1,156 @@ +<!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: Multivariate Gaussian Mixture Model (GMM)</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 spark.gaussianMixture {SparkR}"><tr><td>spark.gaussianMixture {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Multivariate Gaussian Mixture Model (GMM)</h2> + +<h3>Description</h3> + +<p>Fits multivariate gaussian mixture model against a SparkDataFrame, similarly to R's +mvnormalmixEM(). Users can call <code>summary</code> to print a summary of the fitted model, +<code>predict</code> to make predictions on new data, and <code>write.ml</code>/<code>read.ml</code> +to save/load fitted models. +</p> + + +<h3>Usage</h3> + +<pre> +spark.gaussianMixture(data, formula, ...) + +## S4 method for signature 'GaussianMixtureModel,character' +write.ml(object, path, + overwrite = FALSE) + +## S4 method for signature 'SparkDataFrame,formula' +spark.gaussianMixture(data, formula, k = 2, + maxIter = 100, tol = 0.01) + +## S4 method for signature 'GaussianMixtureModel' +summary(object) + +## S4 method for signature 'GaussianMixtureModel' +predict(object, newData) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>data</code></td> +<td> +<p>a SparkDataFrame for training.</p> +</td></tr> +<tr valign="top"><td><code>formula</code></td> +<td> +<p>a symbolic description of the model to be fitted. Currently only a few formula +operators are supported, including '~', '.', ':', '+', and '-'. +Note that the response variable of formula is empty in spark.gaussianMixture.</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>additional arguments passed to the method.</p> +</td></tr> +<tr valign="top"><td><code>object</code></td> +<td> +<p>a fitted gaussian mixture model.</p> +</td></tr> +<tr valign="top"><td><code>path</code></td> +<td> +<p>the directory where the model is saved.</p> +</td></tr> +<tr valign="top"><td><code>overwrite</code></td> +<td> +<p>overwrites or not if the output path already exists. Default is FALSE +which means throw exception if the output path exists.</p> +</td></tr> +<tr valign="top"><td><code>k</code></td> +<td> +<p>number of independent Gaussians in the mixture model.</p> +</td></tr> +<tr valign="top"><td><code>maxIter</code></td> +<td> +<p>maximum iteration number.</p> +</td></tr> +<tr valign="top"><td><code>tol</code></td> +<td> +<p>the convergence tolerance.</p> +</td></tr> +<tr valign="top"><td><code>newData</code></td> +<td> +<p>a SparkDataFrame for testing.</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p><code>spark.gaussianMixture</code> returns a fitted multivariate gaussian mixture model. +</p> +<p><code>summary</code> returns summary of the fitted model, which is a list. +The list includes the model's <code>lambda</code> (lambda), <code>mu</code> (mu), +<code>sigma</code> (sigma), and <code>posterior</code> (posterior). +</p> +<p><code>predict</code> returns a SparkDataFrame containing predicted labels in a column named +"prediction". +</p> + + +<h3>Note</h3> + +<p>write.ml(GaussianMixtureModel, character) since 2.1.0 +</p> +<p>spark.gaussianMixture since 2.1.0 +</p> +<p>summary(GaussianMixtureModel) since 2.1.0 +</p> +<p>predict(GaussianMixtureModel) since 2.1.0 +</p> + + +<h3>See Also</h3> + +<p>mixtools: <a href="https://cran.r-project.org/package=mixtools">https://cran.r-project.org/package=mixtools</a> +</p> +<p><a href="predict.html">predict</a>, <a href="read.ml.html">read.ml</a>, <a href="write.ml.html">write.ml</a> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sparkR.session() +##D library(mvtnorm) +##D set.seed(100) +##D a <- rmvnorm(4, c(0, 0)) +##D b <- rmvnorm(6, c(3, 4)) +##D data <- rbind(a, b) +##D df <- createDataFrame(as.data.frame(data)) +##D model <- spark.gaussianMixture(df, ~ V1 + V2, k = 2) +##D summary(model) +##D +##D # fitted values on training data +##D fitted <- predict(model, df) +##D head(select(fitted, "V1", "prediction")) +##D +##D # save fitted model to input path +##D path <- "path/to/model" +##D write.ml(model, path) +##D +##D # can also read back the saved model and print +##D savedModel <- read.ml(path) +##D summary(savedModel) +## 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