summaryrefslogtreecommitdiff
path: root/site/docs/1.5.2/api/R/unionAll.html
blob: 5f4ec2544f78338b41c0dffddbfaab621770f1c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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 &lt;- sparkR.init()
##D sqlContext &lt;- sparkRSQL.init(sc)
##D df1 &lt;- jsonFile(sqlContext, path)
##D df2 &lt;- jsonFile(sqlContext, path2)
##D unioned &lt;- unionAll(df, df2)
## End(Not run)
</code></pre>


<hr /><div style="text-align: center;">[Package <em>SparkR</em> version 1.5.2 <a href="00Index.html">Index</a>]</div>
</body></html>