blob: 7191b4163871588aaacb5f961a58fea94bc87c9c [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Match a column with given values.</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 %in% {SparkR}"><tr><td>%in% {SparkR}</td><td align="right">R Documentation</td></tr></table>
<h2>Match a column with given values.</h2>
<h3>Description</h3>
<p>Match a column with given values.
</p>
<h3>Usage</h3>
<pre>
## S4 method for signature 'Column'
x %in% table
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
<p>a Column.</p>
</td></tr>
<tr valign="top"><td><code>table</code></td>
<td>
<p>a collection of values (coercible to list) to compare with.</p>
</td></tr>
</table>
<h3>Value</h3>
<p>A matched values as a result of comparing with given values.
</p>
<h3>Note</h3>
<p>%in% since 1.5.0
</p>
<h3>Examples</h3>
<pre><code class="r">## Not run:
##D filter(df, &quot;age in (10, 30)&quot;)
##D where(df, df$age %in% c(10, 30))
## End(Not run)
</code></pre>
<hr><div align="center">[Package <em>SparkR</em> version 2.1.1 <a href="00Index.html">Index</a>]</div>
</body></html>