Added: spark/site/docs/1.5.0/api/R/trim.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/trim.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/trim.html (added) +++ spark/site/docs/1.5.0/api/R/trim.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: trim</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 trim {SparkR}"><tr><td>trim {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>trim</h2> + +<h3>Description</h3> + +<p>Trim the spaces from both ends for the specified string column. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +trim(x) + +trim(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="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="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> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: trim(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/unbase64.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/unbase64.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/unbase64.html (added) +++ spark/site/docs/1.5.0/api/R/unbase64.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,70 @@ +<!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: unbase64</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 unbase64 {SparkR}"><tr><td>unbase64 {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>unbase64</h2> + +<h3>Description</h3> + +<p>Decodes a BASE64 encoded string column and returns it as a binary column. +This is the reverse of base64. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +unbase64(x) + +unbase64(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="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="upper.html">upper</a></code>, +<code><a href="upper.html">upper</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: unbase64(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/uncacheTable.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/uncacheTable.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/uncacheTable.html (added) +++ spark/site/docs/1.5.0/api/R/uncacheTable.html Fri Sep 18 16:25:35 2015 @@ -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: Uncache 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 uncacheTable {SparkR}"><tr><td>uncacheTable {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Uncache Table</h2> + +<h3>Description</h3> + +<p>Removes the specified table from the in-memory cache. +</p> + + +<h3>Usage</h3> + +<pre> +uncacheTable(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 table being uncached</p> +</td></tr> +</table> + + +<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 path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D registerTempTable(df, "table") +##D uncacheTable(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/unhex.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/unhex.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/unhex.html (added) +++ spark/site/docs/1.5.0/api/R/unhex.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,70 @@ +<!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: unhex</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 unhex {SparkR}"><tr><td>unhex {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>unhex</h2> + +<h3>Description</h3> + +<p>Inverse of hex. Interprets each pair of characters as a hexadecimal number +and converts to the byte representation of number. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +unhex(x) + +unhex(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="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> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: unhex(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/unionAll.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/unionAll.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/unionAll.html (added) +++ spark/site/docs/1.5.0/api/R/unionAll.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,66 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: UnionAll</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 unionAll {SparkR}"><tr><td>unionAll {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>UnionAll</h2> + +<h3>Description</h3> + +<p>Return a new DataFrame containing the union of rows in this DataFrame +and another DataFrame. This is equivalent to 'UNION ALL' in SQL. +Note that this does not remove duplicate rows across the two DataFrames. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame,DataFrame' +unionAll(x, y) + +unionAll(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 union. +</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 unioned <- unionAll(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/unique.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/unique.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/unique.html (added) +++ spark/site/docs/1.5.0/api/R/unique.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,24 @@ +<!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 rows in a DataFrame</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 unique {SparkR}"><tr><td>unique {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Distinct rows in a DataFrame</h2> + +<h3>Description</h3> + +<p>Returns a new DataFrame containing distinct rows in this DataFrame +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame' +unique(x) +</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/unix_timestamp.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/unix_timestamp.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/unix_timestamp.html (added) +++ spark/site/docs/1.5.0/api/R/unix_timestamp.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,108 @@ +<!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: unix_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 unix_timestamp {SparkR}"><tr><td>unix_timestamp {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>unix_timestamp</h2> + +<h3>Description</h3> + +<p>Gets current Unix timestamp in seconds. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'missing,missing' +unix_timestamp(x, format) + +## S4 method for signature 'Column,missing' +unix_timestamp(x, format) + +## S4 method for signature 'Column,character' +unix_timestamp(x, format = "yyyy-MM-dd HH:mm:ss") + +unix_timestamp(x, format) +</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="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="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> +<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="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="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> +<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="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="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/unpersist-methods.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/unpersist-methods.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/unpersist-methods.html (added) +++ spark/site/docs/1.5.0/api/R/unpersist-methods.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: Unpersist</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 unpersist {SparkR}"><tr><td>unpersist {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Unpersist</h2> + +<h3>Description</h3> + +<p>Mark this DataFrame as non-persistent, and remove all blocks for it from memory and +disk. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame' +unpersist(x, blocking = TRUE) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>The DataFrame to unpersist</p> +</td></tr> +<tr valign="top"><td><code>blocking</code></td> +<td> +<p>Whether to block until all blocks are deleted</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 persist(df, "MEMORY_AND_DISK") +##D unpersist(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/upper.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/upper.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/upper.html (added) +++ spark/site/docs/1.5.0/api/R/upper.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: upper</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 upper {SparkR}"><tr><td>upper {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>upper</h2> + +<h3>Description</h3> + +<p>Converts a string column to upper case. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +upper(x) + +upper(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="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> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: upper(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/weekofyear.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/weekofyear.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/weekofyear.html (added) +++ spark/site/docs/1.5.0/api/R/weekofyear.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: weekofyear</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 weekofyear {SparkR}"><tr><td>weekofyear {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>weekofyear</h2> + +<h3>Description</h3> + +<p>Extracts the week number as an integer from a given date/timestamp/string. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +weekofyear(x) + +weekofyear(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="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="year.html">year</a></code>, +<code><a href="year.html">year</a></code> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: weekofyear(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/when.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/when.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/when.html (added) +++ spark/site/docs/1.5.0/api/R/when.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,43 @@ +<!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: when</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 when {SparkR}"><tr><td>when {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>when</h2> + +<h3>Description</h3> + +<p>Evaluates a list of conditions and returns one of multiple possible result expressions. +For unmatched expressions null is returned. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +when(condition, value) +</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="expr.html">expr</a></code>, <code><a href="expr.html">expr</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> +</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/withColumn.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/withColumn.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/withColumn.html (added) +++ spark/site/docs/1.5.0/api/R/withColumn.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,99 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: WithColumn</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 withColumn {SparkR}"><tr><td>withColumn {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>WithColumn</h2> + +<h3>Description</h3> + +<p>Return a new DataFrame with the specified column added. +</p> +<p>Return a new DataFrame with the specified columns added. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame,character,Column' +withColumn(x, colName, col) + +## S4 method for signature 'DataFrame' +mutate(.data, ...) + +## S4 method for signature 'DataFrame' +transform(`_data`, ...) + +mutate(.data, ...) + +transform(`_data`, ...) + +withColumn(x, colName, col) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A DataFrame</p> +</td></tr> +<tr valign="top"><td><code>colName</code></td> +<td> +<p>A string containing the name of the new column.</p> +</td></tr> +<tr valign="top"><td><code>col</code></td> +<td> +<p>A Column expression.</p> +</td></tr> +<tr valign="top"><td><code>.data</code></td> +<td> +<p>A DataFrame</p> +</td></tr> +<tr valign="top"><td><code>col</code></td> +<td> +<p>a named argument of the form name = col</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A DataFrame with the new column added. +</p> +<p>A new DataFrame with the new columns added. +</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 newDF <- withColumn(df, "newCol", df$col1 * 5) +## End(Not run) +## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D newDF <- mutate(df, newCol = df$col1 * 5, newCol2 = df$col1 * 2) +##D names(newDF) # Will contain newCol, newCol2 +##D newDF2 <- transform(df, newCol = df$col1 / 5, newCol2 = df$col1 * 2) +## 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/withColumnRenamed.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/withColumnRenamed.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/withColumnRenamed.html (added) +++ spark/site/docs/1.5.0/api/R/withColumnRenamed.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,93 @@ +<!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: WithColumnRenamed</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 withColumnRenamed {SparkR}"><tr><td>withColumnRenamed {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>WithColumnRenamed</h2> + +<h3>Description</h3> + +<p>Rename an existing column in a DataFrame. +</p> +<p>Rename an existing column in a DataFrame. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame,character,character' +withColumnRenamed(x, existingCol, + newCol) + +## S4 method for signature 'DataFrame' +rename(x, ...) + +rename(x, ...) + +withColumnRenamed(x, existingCol, newCol) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A DataFrame</p> +</td></tr> +<tr valign="top"><td><code>existingCol</code></td> +<td> +<p>The name of the column you want to change.</p> +</td></tr> +<tr valign="top"><td><code>newCol</code></td> +<td> +<p>The new column name.</p> +</td></tr> +<tr valign="top"><td><code>x</code></td> +<td> +<p>A DataFrame</p> +</td></tr> +<tr valign="top"><td><code>newCol</code></td> +<td> +<p>A named pair of the form new_column_name = existing_column</p> +</td></tr> +</table> + + +<h3>Value</h3> + +<p>A DataFrame with the column name changed. +</p> +<p>A DataFrame with the column name changed. +</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 newDF <- withColumnRenamed(df, "col1", "newCol1") +## End(Not run) +## Not run: +##D sc <- sparkR.init() +##D sqlContext <- sparkRSQL.init(sc) +##D path <- "path/to/file.json" +##D df <- jsonFile(sqlContext, path) +##D newDF <- rename(df, col1 = df$newCol1) +## 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/write.df.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/write.df.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/write.df.html (added) +++ spark/site/docs/1.5.0/api/R/write.df.html Fri Sep 18 16:25:35 2015 @@ -0,0 +1,86 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Save the contents of the DataFrame to a data source</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 write.df {SparkR}"><tr><td>write.df {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>Save the contents of the DataFrame to a data source</h2> + +<h3>Description</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>Usage</h3> + +<pre> +## S4 method for signature 'DataFrame,character' +write.df(df, path, source = NULL, + mode = "append", ...) + +## S4 method for signature 'DataFrame,character' +saveDF(df, path, source = NULL, + mode = "append", ...) + +write.df(df, path, ...) + +saveDF(df, path, ...) +</pre> + + +<h3>Arguments</h3> + +<table summary="R argblock"> +<tr valign="top"><td><code>df</code></td> +<td> +<p>A SparkSQL DataFrame</p> +</td></tr> +<tr valign="top"><td><code>path</code></td> +<td> +<p>A name for the table</p> +</td></tr> +<tr valign="top"><td><code>source</code></td> +<td> +<p>A name for external data source</p> +</td></tr> +<tr valign="top"><td><code>mode</code></td> +<td> +<p>One of 'append', 'overwrite', 'error', 'ignore'</p> +</td></tr> +</table> + + +<h3>Details</h3> + +<p>Additionally, mode is used to specify the behavior of the save operation when +data already exists in the data source. There are four modes: +append: Contents of this DataFrame are expected to be appended to existing data. +overwrite: Existing data is expected to be overwritten by the contents of +error: An exception is expected to be thrown. +ignore: The save operation is expected to not save the contents of the 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 write.df(df, "myfile", "parquet", "overwrite") +## 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/year.html URL: http://svn.apache.org/viewvc/spark/site/docs/1.5.0/api/R/year.html?rev=1703900&view=auto ============================================================================== --- spark/site/docs/1.5.0/api/R/year.html (added) +++ spark/site/docs/1.5.0/api/R/year.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: year</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 year {SparkR}"><tr><td>year {SparkR}</td><td style="text-align: right;">R Documentation</td></tr></table> + +<h2>year</h2> + +<h3>Description</h3> + +<p>Extracts the year as an integer from a given date/timestamp/string. +</p> + + +<h3>Usage</h3> + +<pre> +## S4 method for signature 'Column' +year(x) + +year(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="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> +</p> + + +<h3>Examples</h3> + +<pre><code class="r">## Not run: year(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> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
