Added: spark/site/docs/1.5.0/api/R/createExternalTable.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/createExternalTable.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/createExternalTable.html (added) +++ spark/site/docs/1.5.0/api/R/createExternalTable.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,76 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create an external table</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for createExternalTable {SparkR}"><tr><td>createExternalTable {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Create an external table</h2> + +<h3>Description</h3> + +<p>Creates an external table based on the dataset in a data source, +Returns the DataFrame associated with the external table. +</p> + + +<h3>Usage</h3> + +<pre> +createExternalTable(sqlContext, tableName, path = NULL, source = NULL, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>sqlContext</code></td> +<td> +<p>SQLContext to use</p> +</td></tr> +<tr valign="top"><td><code>tableName</code></td> +<td> +<p>A name of the table</p> +</td></tr> +<tr valign="top"><td><code>path</code></td> +<td> +<p>The path of files to load</p> +</td></tr> +<tr valign="top"><td><code>source</code></td> +<td> +<p>the name of external data source</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>The data source is specified by the 'source' and a set of options(...). +If 'source' is not specified, the default data source configured by +"spark.sql.sources.default" will be used. +</p> + + +<h3>Value</h3> + +<p>DataFrame +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D df <- sparkRSQL.createExternalTable(sqlContext, "myjson", path="path/to/json", source="json") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html>
Added: spark/site/docs/1.5.0/api/R/date_add.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/date_add.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/date_add.html (added) +++ spark/site/docs/1.5.0/api/R/date_add.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,57 @@ +<!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: date_add</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for date_add {SparkR}"><tr><td>date_add {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>date_add</h2> + +<h3>Description</h3> + +<p>Returns the date that is 'days' days after 'start' +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column,numeric' +date_add(y, x) + +date_add(y, x) +</pre> + + +<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="date_format.html">date_format</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="date_sub.html">date_sub</a></code>; <code><a href="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff</a></code>; <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth</a></code>; <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear</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_utc_timestamp.html">from_utc_timestamp</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="hour.html">hour</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="minute.html">minute</a></code>, +<code><a href="minute.html">minute</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="month.html">month</a></code>, +<code><a href="month.html">month</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="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter</a></code>; <code><a href="second.html">second</a></code>, +<code><a href="second.html">second</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_utc_timestamp.html">to_utc_timestamp</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="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="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/date_format.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/date_format.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/date_format.html (added) +++ spark/site/docs/1.5.0/api/R/date_format.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,69 @@ +<!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: date_format</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for date_format {SparkR}"><tr><td>date_format {SparkR}</td><td style="text-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>Details</h3> + +<p>A pattern could be for instance </p> +<pre>dd.MM.yyyy</pre><p> and could return a string like '18.03.1993'. All +pattern letters of <code>java.text.SimpleDateFormat</code> can be used. +</p> +<p>NOTE: Use when ever possible specialized functions like <code>year</code>. These benefit from a +specialized implementation. +</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="date_add.html">date_add</a></code>, +<code><a href="date_add.html">date_add</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="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff</a></code>; <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth</a></code>; <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear</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_utc_timestamp.html">from_utc_timestamp</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="hour.html">hour</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="minute.html">minute</a></code>, +<code><a href="minute.html">minute</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="month.html">month</a></code>, +<code><a href="month.html">month</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="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter</a></code>; <code><a href="second.html">second</a></code>, +<code><a href="second.html">second</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_utc_timestamp.html">to_utc_timestamp</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="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="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/date_sub.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/date_sub.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/date_sub.html (added) +++ spark/site/docs/1.5.0/api/R/date_sub.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,57 @@ +<!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: date_sub</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for date_sub {SparkR}"><tr><td>date_sub {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>date_sub</h2> + +<h3>Description</h3> + +<p>Returns the date that is 'days' days before 'start' +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column,numeric' +date_sub(y, x) + +date_sub(y, x) +</pre> + + +<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="date_add.html">date_add</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_format.html">date_format</a></code>; <code><a href="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff</a></code>; <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth</a></code>; <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear</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_utc_timestamp.html">from_utc_timestamp</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="hour.html">hour</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="minute.html">minute</a></code>, +<code><a href="minute.html">minute</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="month.html">month</a></code>, +<code><a href="month.html">month</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="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter</a></code>; <code><a href="second.html">second</a></code>, +<code><a href="second.html">second</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_utc_timestamp.html">to_utc_timestamp</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="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="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/datediff.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/datediff.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/datediff.html (added) +++ spark/site/docs/1.5.0/api/R/datediff.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,69 @@ +<!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: 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 style="text-align: right;">R Documentation</td></tr></table> + +<h2>datediff</h2> + +<h3>Description</h3> + +<p>Returns the number of days from 'start' to 'end'. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +datediff(y, x) + +datediff(y, x) +</pre> + + +<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="date_add.html">date_add</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_format.html">date_format</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="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth</a></code>; <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear</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_utc_timestamp.html">from_utc_timestamp</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="hour.html">hour</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="minute.html">minute</a></code>, +<code><a href="minute.html">minute</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="month.html">month</a></code>, +<code><a href="month.html">month</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="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter</a></code>; <code><a href="second.html">second</a></code>, +<code><a href="second.html">second</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_utc_timestamp.html">to_utc_timestamp</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="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="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: datediff(df$c, x) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/dayofmonth.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/dayofmonth.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/dayofmonth.html (added) +++ spark/site/docs/1.5.0/api/R/dayofmonth.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,69 @@ +<!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: 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 style="text-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>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="date_add.html">date_add</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_format.html">date_format</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="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff</a></code>; <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear</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_utc_timestamp.html">from_utc_timestamp</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="hour.html">hour</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="minute.html">minute</a></code>, +<code><a href="minute.html">minute</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="month.html">month</a></code>, +<code><a href="month.html">month</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="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter</a></code>; <code><a href="second.html">second</a></code>, +<code><a href="second.html">second</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_utc_timestamp.html">to_utc_timestamp</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="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="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: dayofmonth(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/dayofyear.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/dayofyear.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/dayofyear.html (added) +++ spark/site/docs/1.5.0/api/R/dayofyear.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,69 @@ +<!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: dayofyear</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 dayofyear {SparkR}"><tr><td>dayofyear {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>dayofyear</h2> + +<h3>Description</h3> + +<p>Extracts the day of the year as an integer from a given date/timestamp/string. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +dayofyear(x) + +dayofyear(x) +</pre> + + +<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="date_add.html">date_add</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_format.html">date_format</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="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff</a></code>; <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth</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_utc_timestamp.html">from_utc_timestamp</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="hour.html">hour</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="minute.html">minute</a></code>, +<code><a href="minute.html">minute</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="month.html">month</a></code>, +<code><a href="month.html">month</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="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter</a></code>; <code><a href="second.html">second</a></code>, +<code><a href="second.html">second</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_utc_timestamp.html">to_utc_timestamp</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="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="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: dayofyear(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/describe.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/describe.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/describe.html (added) +++ spark/site/docs/1.5.0/api/R/describe.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,74 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: describe</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 describe {SparkR}"><tr><td>describe {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>describe</h2> + +<h3>Description</h3> + +<p>Computes statistics for numeric columns. +If no columns are given, this function computes statistics for all numerical columns. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame,character' +describe(x, col, ...) + +## S4 method for signature 'DataFrame,ANY' +describe(x) + +describe(x, col, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A DataFrame to be computed.</p> +</td></tr> +<tr valign="top"><td><code>col</code></td> +<td> +<p>A string of name</p> +</td></tr> +<tr valign="top"><td><code>...</code></td> +<td> +<p>Additional expressions</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A DataFrame +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D describe(df) +##D describe(df, "col1") +##D describe(df, "col1", "col2") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/dim.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/dim.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/dim.html (added) +++ spark/site/docs/1.5.0/api/R/dim.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,52 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Returns the dimentions (number of rows and columns) of a...</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for dim {SparkR}"><tr><td>dim {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Returns the dimentions (number of rows and columns) of a DataFrame</h2> + +<h3>Description</h3> + +<p>Returns the dimentions (number of rows and columns) of a DataFrame +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame' +dim(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>a SparkSQL DataFrame</p> +</td></tr> +</table> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D dim(df) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/distinct.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/distinct.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/distinct.html (added) +++ spark/site/docs/1.5.0/api/R/distinct.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,52 @@ +<!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: Distinct</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 distinct {SparkR}"><tr><td>distinct {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Distinct</h2> + +<h3>Description</h3> + +<p>Return a new DataFrame containing the distinct rows in this DataFrame. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame' +distinct(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkSQL DataFrame</p> +</td></tr> +</table> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D distinctDF <- distinct(df) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/dropTempTable.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/dropTempTable.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/dropTempTable.html (added) +++ spark/site/docs/1.5.0/api/R/dropTempTable.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,56 @@ +<!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: Drop Temporary Table</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> + +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script> +<script>hljs.initHighlightingOnLoad();</script> +</head><body> + +<table width="100%" summary="page for dropTempTable {SparkR}"><tr><td>dropTempTable {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Drop Temporary Table</h2> + +<h3>Description</h3> + +<p>Drops the temporary table with the given table name in the catalog. +If the table has been cached/persisted before, it's also unpersisted. +</p> + + +<h3>Usage</h3> + +<pre> +dropTempTable(sqlContext, tableName) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>sqlContext</code></td> +<td> +<p>SQLContext to use</p> +</td></tr> +<tr valign="top"><td><code>tableName</code></td> +<td> +<p>The name of the SparkSQL table to be dropped.</p> +</td></tr> +</table> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D df <- read.df(sqlContext, path, "parquet") +##D registerTempTable(df, "table") +##D dropTempTable(sqlContext, "table") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/dtypes.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/dtypes.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/dtypes.html (added) +++ spark/site/docs/1.5.0/api/R/dtypes.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,52 @@ +<!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: DataTypes</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 dtypes {SparkR}"><tr><td>dtypes {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>DataTypes</h2> + +<h3>Description</h3> + +<p>Return all column names and their data types as a list +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame' +dtypes(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkSQL DataFrame</p> +</td></tr> +</table> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D dtypes(df) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/except.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/except.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/except.html (added) +++ spark/site/docs/1.5.0/api/R/except.html Fri Sep 18 16:25:35 2015 @@ -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: except</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 except {SparkR}"><tr><td>except {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>except</h2> + +<h3>Description</h3> + +<p>Return a new DataFrame containing rows in this DataFrame +but not in another DataFrame. This is equivalent to 'EXCEPT' in SQL. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame,DataFrame' +except(x, y) + +except(x, y) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A Spark DataFrame</p> +</td></tr> +<tr valign="top"><td><code>y</code></td> +<td> +<p>A Spark DataFrame</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A DataFrame containing the result of the except operation. +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D df1 <- jsonFile(sqlContext, path) +##D df2 <- jsonFile(sqlContext, path2) +##D exceptDF <- except(df, df2) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/exp.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/exp.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/exp.html (added) +++ spark/site/docs/1.5.0/api/R/exp.html Fri Sep 18 16:25:35 2015 @@ -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: exp</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 exp {SparkR}"><tr><td>exp {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>exp</h2> + +<h3>Description</h3> + +<p>Computes the exponential of the given value. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +exp(x) +</pre> + + +<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="bin.html">bin</a></code>; <code><a href="cbrt.html">cbrt</a></code>, +<code><a href="cbrt.html">cbrt</a></code>; <code><a href="ceil.html">ceil</a></code>, +<code><a href="ceil.html">ceil</a></code>, <code><a href="ceil.html">ceil</a></code>; +<code><a href="conv.html">conv</a></code>, <code><a href="conv.html">conv</a></code>; +<code><a href="cosh.html">cosh</a></code>; <code><a href="cos.html">cos</a></code>; +<code><a href="expm1.html">expm1</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="hex.html">hex</a></code>; <code><a href="hypot.html">hypot</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="pmod.html">pmod</a></code>; <code><a href="rint.html">rint</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="shiftLeft.html">shiftLeft</a></code>; +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>, +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>; +<code><a href="shiftRight.html">shiftRight</a></code>, <code><a href="shiftRight.html">shiftRight</a></code>; +<code><a href="signum.html">signum</a></code>, <code><a href="signum.html">signum</a></code>, +<code><a href="signum.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="toDegrees.html">toDegrees</a></code>; +<code><a href="toRadians.html">toRadians</a></code>, <code><a href="toRadians.html">toRadians</a></code>; +<code><a href="unhex.html">unhex</a></code>, <code><a href="unhex.html">unhex</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: exp(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/explain.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/explain.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/explain.html (added) +++ spark/site/docs/1.5.0/api/R/explain.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,58 @@ +<!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: Explain</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 explain {SparkR}"><tr><td>explain {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Explain</h2> + +<h3>Description</h3> + +<p>Print the logical and physical Catalyst plans to the console for debugging. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame' +explain(x, extended = FALSE) + +explain(x, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkSQL DataFrame</p> +</td></tr> +<tr valign="top"><td><code>extended</code></td> +<td> +<p>Logical. If extended is False, explain() only prints the physical plan.</p> +</td></tr> +</table> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D explain(df, TRUE) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/explode.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/explode.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/explode.html (added) +++ spark/site/docs/1.5.0/api/R/explode.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,45 @@ +<!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: explode</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 explode {SparkR}"><tr><td>explode {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>explode</h2> + +<h3>Description</h3> + +<p>Creates a new row for each element in the given array or map column. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +explode(x) + +explode(x) +</pre> + + +<h3>See Also</h3> + +<p>Other collection_funcs: <code><a href="size.html">size</a></code>, +<code><a href="size.html">size</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: explode(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/expm1.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/expm1.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/expm1.html (added) +++ spark/site/docs/1.5.0/api/R/expm1.html Fri Sep 18 16:25:35 2015 @@ -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: expm1</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 expm1 {SparkR}"><tr><td>expm1 {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>expm1</h2> + +<h3>Description</h3> + +<p>Computes the exponential of the given value minus one. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +expm1(x) +</pre> + + +<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="bin.html">bin</a></code>; <code><a href="cbrt.html">cbrt</a></code>, +<code><a href="cbrt.html">cbrt</a></code>; <code><a href="ceil.html">ceil</a></code>, +<code><a href="ceil.html">ceil</a></code>, <code><a href="ceil.html">ceil</a></code>; +<code><a href="conv.html">conv</a></code>, <code><a href="conv.html">conv</a></code>; +<code><a href="cosh.html">cosh</a></code>; <code><a href="cos.html">cos</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="hex.html">hex</a></code>; +<code><a href="hypot.html">hypot</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="pmod.html">pmod</a></code>; +<code><a href="rint.html">rint</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="shiftLeft.html">shiftLeft</a></code>; +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>, +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>; +<code><a href="shiftRight.html">shiftRight</a></code>, <code><a href="shiftRight.html">shiftRight</a></code>; +<code><a href="signum.html">signum</a></code>, <code><a href="signum.html">signum</a></code>, +<code><a href="signum.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="toDegrees.html">toDegrees</a></code>; +<code><a href="toRadians.html">toRadians</a></code>, <code><a href="toRadians.html">toRadians</a></code>; +<code><a href="unhex.html">unhex</a></code>, <code><a href="unhex.html">unhex</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: expm1(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/expr.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/expr.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/expr.html (added) +++ spark/site/docs/1.5.0/api/R/expr.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,44 @@ +<!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: expr</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for expr {SparkR}"><tr><td>expr {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>expr</h2> + +<h3>Description</h3> + +<p>Parses the expression string into the column that it represents, similar to +DataFrame.selectExpr +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'character' +expr(x) + +expr(x) +</pre> + + +<h3>See Also</h3> + +<p>Other normal_funcs: <code><a href="abs.html">abs</a></code>; +<code><a href="bitwiseNOT.html">bitwiseNOT</a></code>, <code><a href="bitwiseNOT.html">bitwiseNOT</a></code>; +<code><a href="greatest.html">greatest</a></code>, <code><a href="greatest.html">greatest</a></code>; +<code><a href="ifelse.html">ifelse</a></code>; <code><a href="isNaN.html">isNaN</a></code>, +<code><a href="isNaN.html">isNaN</a></code>; <code><a href="least.html">least</a></code>, +<code><a href="least.html">least</a></code>; <code><a href="lit.html">lit</a></code>, +<code><a href="lit.html">lit</a></code>; <code><a href="nanvl.html">nanvl</a></code>, +<code><a href="nanvl.html">nanvl</a></code>; <code><a href="negate.html">negate</a></code>, +<code><a href="negate.html">negate</a></code>; <code><a href="randn.html">randn</a></code>, +<code><a href="randn.html">randn</a></code>, <code><a href="randn.html">randn</a></code>; +<code><a href="rand.html">rand</a></code>, <code><a href="rand.html">rand</a></code>, +<code><a href="rand.html">rand</a></code>; <code><a href="when.html">when</a></code> +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/factorial.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/factorial.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/factorial.html (added) +++ spark/site/docs/1.5.0/api/R/factorial.html Fri Sep 18 16:25:35 2015 @@ -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: factorial</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 factorial {SparkR}"><tr><td>factorial {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>factorial</h2> + +<h3>Description</h3> + +<p>Computes the factorial of the given value. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +factorial(x) +</pre> + + +<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="bin.html">bin</a></code>; <code><a href="cbrt.html">cbrt</a></code>, +<code><a href="cbrt.html">cbrt</a></code>; <code><a href="ceil.html">ceil</a></code>, +<code><a href="ceil.html">ceil</a></code>, <code><a href="ceil.html">ceil</a></code>; +<code><a href="conv.html">conv</a></code>, <code><a href="conv.html">conv</a></code>; +<code><a href="cosh.html">cosh</a></code>; <code><a href="cos.html">cos</a></code>; +<code><a href="expm1.html">expm1</a></code>; <code><a href="exp.html">exp</a></code>; +<code><a href="floor.html">floor</a></code>; <code><a href="hex.html">hex</a></code>, +<code><a href="hex.html">hex</a></code>; <code><a href="hypot.html">hypot</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="pmod.html">pmod</a></code>; <code><a href="rint.html">rint</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="shiftLeft.html">shiftLeft</a></code>; +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>, +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>; +<code><a href="shiftRight.html">shiftRight</a></code>, <code><a href="shiftRight.html">shiftRight</a></code>; +<code><a href="signum.html">signum</a></code>, <code><a href="signum.html">signum</a></code>, +<code><a href="signum.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="toDegrees.html">toDegrees</a></code>; +<code><a href="toRadians.html">toRadians</a></code>, <code><a href="toRadians.html">toRadians</a></code>; +<code><a href="unhex.html">unhex</a></code>, <code><a href="unhex.html">unhex</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: factorial(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/filter.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/filter.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/filter.html (added) +++ spark/site/docs/1.5.0/api/R/filter.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,84 @@ +<!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: Filter</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 filter {SparkR}"><tr><td>filter {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Filter</h2> + +<h3>Description</h3> + +<p>Filter the rows of a DataFrame according to a given condition. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame,characterOrColumn' +filter(x, condition) + +## S4 method for signature 'DataFrame,characterOrColumn' +where(x, condition) + +filter(x, condition) + +where(x, condition) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A DataFrame to be sorted.</p> +</td></tr> +<tr valign="top"><td><code>condition</code></td> +<td> +<p>The condition to filter on. This may either be a Column expression +or a string containing a SQL statement</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A DataFrame containing only the rows that meet the condition. +</p> + + +<h3>See Also</h3> + +<p>Other subsetting functions: <code><a href="select.html">$</a></code>, +<code><a href="select.html">$<-</a></code>, <code><a href="select.html">select</a></code>, +<code><a href="select.html">select</a></code>, +<code><a href="select.html">select,DataFrame,Column-method</a></code>, +<code><a href="select.html">select,DataFrame,list-method</a></code>, +<code><a href="selectExpr.html">selectExpr</a></code>; <code><a href="subset.html">[</a></code>, +<code><a href="subset.html">[</a></code>, <code><a href="subset.html">[</a></code>, <code><a href="subset.html">[[</a></code>, +<code><a href="subset.html">subset</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D filter(df, "col1 > 0") +##D filter(df, df$col2 != "abcdefg") +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/first.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/first.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/first.html (added) +++ spark/site/docs/1.5.0/api/R/first.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,75 @@ +<!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: Return the first row of a DataFrame</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 first {SparkR}"><tr><td>first {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Return the first row of a DataFrame</h2> + +<h3>Description</h3> + +<p>Return the first row of a DataFrame +</p> +<p>Aggregate function: returns the first value in a group. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame' +first(x) + +## S4 method for signature 'Column' +first(x) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A SparkSQL DataFrame</p> +</td></tr> +</table> + + +<h3>See Also</h3> + +<p>Other agg_funcs: <code><a href="approxCountDistinct.html">approxCountDistinct</a></code>, +<code><a href="approxCountDistinct.html">approxCountDistinct</a></code>, +<code><a href="approxCountDistinct.html">approxCountDistinct</a></code>; <code><a href="avg.html">avg</a></code>, +<code><a href="avg.html">avg</a></code>; <code><a href="countDistinct.html">countDistinct</a></code>, +<code><a href="countDistinct.html">countDistinct</a></code>, <code><a href="countDistinct.html">countDistinct</a></code>, +<code><a href="countDistinct.html">n_distinct</a></code>; <code><a href="nrow.html">count</a></code>, +<code><a href="nrow.html">count</a></code>, <code><a href="nrow.html">count</a></code>, +<code><a href="count.html">n</a></code>, <code><a href="nrow.html">nrow</a></code>; <code><a href="last.html">last</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="sumDistinct.html">sumDistinct</a></code>, <code><a href="sumDistinct.html">sumDistinct</a></code>; +<code><a href="sum.html">sum</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D first(df) +## End(Not run) +## Not run: first(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/floor.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/floor.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/floor.html (added) +++ spark/site/docs/1.5.0/api/R/floor.html Fri Sep 18 16:25:35 2015 @@ -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: floor</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 floor {SparkR}"><tr><td>floor {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>floor</h2> + +<h3>Description</h3> + +<p>Computes the floor of the given value. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +floor(x) +</pre> + + +<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="bin.html">bin</a></code>; <code><a href="cbrt.html">cbrt</a></code>, +<code><a href="cbrt.html">cbrt</a></code>; <code><a href="ceil.html">ceil</a></code>, +<code><a href="ceil.html">ceil</a></code>, <code><a href="ceil.html">ceil</a></code>; +<code><a href="conv.html">conv</a></code>, <code><a href="conv.html">conv</a></code>; +<code><a href="cosh.html">cosh</a></code>; <code><a href="cos.html">cos</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="hex.html">hex</a></code>, +<code><a href="hex.html">hex</a></code>; <code><a href="hypot.html">hypot</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="pmod.html">pmod</a></code>; <code><a href="rint.html">rint</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="shiftLeft.html">shiftLeft</a></code>; +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>, +<code><a href="shiftRightUnsigned.html">shiftRightUnsigned</a></code>; +<code><a href="shiftRight.html">shiftRight</a></code>, <code><a href="shiftRight.html">shiftRight</a></code>; +<code><a href="signum.html">signum</a></code>, <code><a href="signum.html">signum</a></code>, +<code><a href="signum.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="toDegrees.html">toDegrees</a></code>; +<code><a href="toRadians.html">toRadians</a></code>, <code><a href="toRadians.html">toRadians</a></code>; +<code><a href="unhex.html">unhex</a></code>, <code><a href="unhex.html">unhex</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: floor(df$c) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/format_number.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/format_number.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/format_number.html (added) +++ spark/site/docs/1.5.0/api/R/format_number.html Fri Sep 18 16:25:35 2015 @@ -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: format_number</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for format_number {SparkR}"><tr><td>format_number {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>format_number</h2> + +<h3>Description</h3> + +<p>Formats numeric column x to a format like '#,###,###.##', rounded to d decimal places, +and returns the result as a string column. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column,numeric' +format_number(y, x) + +format_number(y, x) +</pre> + + +<h3>Details</h3> + +<p>If d is 0, the result has no decimal point or fractional part. +If d < 0, the result will be null.' +</p> + + +<h3>See Also</h3> + +<p>Other string_funcs: <code><a href="ascii.html">ascii</a></code>, +<code><a href="ascii.html">ascii</a></code>; <code><a href="base64.html">base64</a></code>, +<code><a href="base64.html">base64</a></code>; <code><a href="concat_ws.html">concat_ws</a></code>, +<code><a href="concat_ws.html">concat_ws</a></code>; <code><a href="concat.html">concat</a></code>, +<code><a href="concat.html">concat</a></code>; <code><a href="format_string.html">format_string</a></code>, +<code><a href="format_string.html">format_string</a></code>; <code><a href="initcap.html">initcap</a></code>, +<code><a href="initcap.html">initcap</a></code>; <code><a href="instr.html">instr</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="levenshtein.html">levenshtein</a></code>; +<code><a href="locate.html">locate</a></code>, <code><a href="locate.html">locate</a></code>; +<code><a href="lower.html">lower</a></code>, <code><a href="lower.html">lower</a></code>; +<code><a href="lpad.html">lpad</a></code>, <code><a href="lpad.html">lpad</a></code>; +<code><a href="ltrim.html">ltrim</a></code>, <code><a href="ltrim.html">ltrim</a></code>; +<code><a href="regexp_extract.html">regexp_extract</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="regexp_replace.html">regexp_replace</a></code>; <code><a href="reverse.html">reverse</a></code>, +<code><a href="reverse.html">reverse</a></code>; <code><a href="rpad.html">rpad</a></code>, +<code><a href="rpad.html">rpad</a></code>; <code><a href="rtrim.html">rtrim</a></code>, +<code><a href="rtrim.html">rtrim</a></code>; <code><a href="soundex.html">soundex</a></code>, +<code><a href="soundex.html">soundex</a></code>; <code><a href="substring_index.html">substring_index</a></code>, +<code><a href="substring_index.html">substring_index</a></code>; <code><a href="translate.html">translate</a></code>, +<code><a href="translate.html">translate</a></code>; <code><a href="trim.html">trim</a></code>, +<code><a href="trim.html">trim</a></code>; <code><a href="unbase64.html">unbase64</a></code>, +<code><a href="unbase64.html">unbase64</a></code>; <code><a href="upper.html">upper</a></code>, +<code><a href="upper.html">upper</a></code> +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/format_string.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/format_string.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/format_string.html (added) +++ spark/site/docs/1.5.0/api/R/format_string.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,57 @@ +<!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: format_string</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for format_string {SparkR}"><tr><td>format_string {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>format_string</h2> + +<h3>Description</h3> + +<p>Formats the arguments in printf-style and returns the result as a string column. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'character,Column' +format_string(format, x, ...) + +format_string(format, x, ...) +</pre> + + +<h3>See Also</h3> + +<p>Other string_funcs: <code><a href="ascii.html">ascii</a></code>, +<code><a href="ascii.html">ascii</a></code>; <code><a href="base64.html">base64</a></code>, +<code><a href="base64.html">base64</a></code>; <code><a href="concat_ws.html">concat_ws</a></code>, +<code><a href="concat_ws.html">concat_ws</a></code>; <code><a href="concat.html">concat</a></code>, +<code><a href="concat.html">concat</a></code>; <code><a href="format_number.html">format_number</a></code>, +<code><a href="format_number.html">format_number</a></code>; <code><a href="initcap.html">initcap</a></code>, +<code><a href="initcap.html">initcap</a></code>; <code><a href="instr.html">instr</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="levenshtein.html">levenshtein</a></code>; +<code><a href="locate.html">locate</a></code>, <code><a href="locate.html">locate</a></code>; +<code><a href="lower.html">lower</a></code>, <code><a href="lower.html">lower</a></code>; +<code><a href="lpad.html">lpad</a></code>, <code><a href="lpad.html">lpad</a></code>; +<code><a href="ltrim.html">ltrim</a></code>, <code><a href="ltrim.html">ltrim</a></code>; +<code><a href="regexp_extract.html">regexp_extract</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="regexp_replace.html">regexp_replace</a></code>; <code><a href="reverse.html">reverse</a></code>, +<code><a href="reverse.html">reverse</a></code>; <code><a href="rpad.html">rpad</a></code>, +<code><a href="rpad.html">rpad</a></code>; <code><a href="rtrim.html">rtrim</a></code>, +<code><a href="rtrim.html">rtrim</a></code>; <code><a href="soundex.html">soundex</a></code>, +<code><a href="soundex.html">soundex</a></code>; <code><a href="substring_index.html">substring_index</a></code>, +<code><a href="substring_index.html">substring_index</a></code>; <code><a href="translate.html">translate</a></code>, +<code><a href="translate.html">translate</a></code>; <code><a href="trim.html">trim</a></code>, +<code><a href="trim.html">trim</a></code>; <code><a href="unbase64.html">unbase64</a></code>, +<code><a href="unbase64.html">unbase64</a></code>; <code><a href="upper.html">upper</a></code>, +<code><a href="upper.html">upper</a></code> +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/from_unixtime.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/from_unixtime.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/from_unixtime.html (added) +++ spark/site/docs/1.5.0/api/R/from_unixtime.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,59 @@ +<!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: from_unixtime</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for from_unixtime {SparkR}"><tr><td>from_unixtime {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>from_unixtime</h2> + +<h3>Description</h3> + +<p>Converts the number of seconds from unix epoch (1970-01-01 00:00:00 UTC) to a string +representing the timestamp of that moment in the current system time zone in the given +format. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +from_unixtime(x, format = "yyyy-MM-dd HH:mm:ss") + +from_unixtime(x, ...) +</pre> + + +<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="date_add.html">date_add</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_format.html">date_format</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="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff</a></code>; <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth</a></code>; <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear</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="hour.html">hour</a></code>, +<code><a href="hour.html">hour</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="minute.html">minute</a></code>, +<code><a href="minute.html">minute</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="month.html">month</a></code>, +<code><a href="month.html">month</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="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter</a></code>; <code><a href="second.html">second</a></code>, +<code><a href="second.html">second</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_utc_timestamp.html">to_utc_timestamp</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="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="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/from_utc_timestamp.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/from_utc_timestamp.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/from_utc_timestamp.html (added) +++ spark/site/docs/1.5.0/api/R/from_utc_timestamp.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,56 @@ +<!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: from_utc_timestamp</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<link rel="stylesheet" type="text/css" href="R.css" /> +</head><body> + +<table width="100%" summary="page for from_utc_timestamp {SparkR}"><tr><td>from_utc_timestamp {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>from_utc_timestamp</h2> + +<h3>Description</h3> + +<p>Assumes given timestamp is UTC and converts to given timezone. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column,character' +from_utc_timestamp(y, x) + +from_utc_timestamp(y, x) +</pre> + + +<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="date_add.html">date_add</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_format.html">date_format</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="datediff.html">datediff</a></code>, +<code><a href="datediff.html">datediff</a></code>; <code><a href="dayofmonth.html">dayofmonth</a></code>, +<code><a href="dayofmonth.html">dayofmonth</a></code>; <code><a href="dayofyear.html">dayofyear</a></code>, +<code><a href="dayofyear.html">dayofyear</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="hour.html">hour</a></code>, +<code><a href="hour.html">hour</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="minute.html">minute</a></code>, +<code><a href="minute.html">minute</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="month.html">month</a></code>, +<code><a href="month.html">month</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="quarter.html">quarter</a></code>, +<code><a href="quarter.html">quarter</a></code>; <code><a href="second.html">second</a></code>, +<code><a href="second.html">second</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_utc_timestamp.html">to_utc_timestamp</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="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="weekofyear.html">weekofyear</a></code>, +<code><a href="weekofyear.html">weekofyear</a></code>; <code><a href="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/glm-formula-ANY-DataFrame-method.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/glm-formula-ANY-DataFrame-method.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/glm-formula-ANY-DataFrame-method.html (added) +++ spark/site/docs/1.5.0/api/R/glm-formula-ANY-DataFrame-method.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,76 @@ +<!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: Fits a generalized linear model, similarly to R's glm(). Also...</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 glm,formula,ANY,DataFrame-method {SparkR}"><tr><td>glm,formula,ANY,DataFrame-method {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Fits a generalized linear model, similarly to R's glm(). Also see the glmnet package.</h2> + +<h3>Description</h3> + +<p>Fits a generalized linear model, similarly to R's glm(). Also see the glmnet package. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'formula,ANY,DataFrame' +glm(formula, family = c("gaussian", + "binomial"), data, lambda = 0, alpha = 0) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<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 '+'.</p> +</td></tr> +<tr valign="top"><td><code>family</code></td> +<td> +<p>Error distribution. "gaussian" -> linear regression, "binomial" -> logistic reg.</p> +</td></tr> +<tr valign="top"><td><code>data</code></td> +<td> +<p>DataFrame for training</p> +</td></tr> +<tr valign="top"><td><code>lambda</code></td> +<td> +<p>Regularization parameter</p> +</td></tr> +<tr valign="top"><td><code>alpha</code></td> +<td> +<p>Elastic-net mixing parameter (see glmnet's documentation for details)</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>a fitted MLlib model +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D data(iris) +##D df <- createDataFrame(sqlContext, iris) +##D model <- glm(Sepal_Length ~ Sepal_Width, df) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.4.0 <a href="00Index.html">Index</a>]</div> +</body></html> Added: spark/site/docs/1.5.0/api/R/glm.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/glm.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/glm.html (added) +++ spark/site/docs/1.5.0/api/R/glm.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,81 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Fits a generalized linear model</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 glm {SparkR}"><tr><td>glm {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Fits a generalized linear model</h2> + +<h3>Description</h3> + +<p>Fits a generalized linear model, similarly to R's glm(). Also see the glmnet package. +</p> + + +<h3>Usage</h3> + +<pre> +glm(formula, family = gaussian, data, weights, subset, na.action, + start = NULL, etastart, mustart, offset, control = list(...), + model = TRUE, method = "glm.fit", x = FALSE, y = TRUE, + contrasts = NULL, ...) + +## S4 method for signature 'formula,ANY,DataFrame' +glm(formula, family = c("gaussian", + "binomial"), data, lambda = 0, alpha = 0) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<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 '.'.</p> +</td></tr> +<tr valign="top"><td><code>family</code></td> +<td> +<p>Error distribution. "gaussian" -> linear regression, "binomial" -> logistic reg.</p> +</td></tr> +<tr valign="top"><td><code>data</code></td> +<td> +<p>DataFrame for training</p> +</td></tr> +<tr valign="top"><td><code>lambda</code></td> +<td> +<p>Regularization parameter</p> +</td></tr> +<tr valign="top"><td><code>alpha</code></td> +<td> +<p>Elastic-net mixing parameter (see glmnet's documentation for details)</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>a fitted MLlib model +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D data(iris) +##D df <- createDataFrame(sqlContext, iris) +##D model <- glm(Sepal_Length ~ Sepal_Width, df) +## End(Not run) +</code></pre> + + +<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.0 <a href="00Index.html">Index</a>]</div> +</body></html> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
