EVOLUTION-MANAGER
Edit File: bind_re_match.html
<!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: Match results from a data frame column and attach results</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 bind_re_match {rematch2}"><tr><td>bind_re_match {rematch2}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Match results from a data frame column and attach results</h2> <h3>Description</h3> <p>Taking a data frame and a column name as input, this function will run <code><a href="re_match.html">re_match</a></code> and bind the results as new columns to the original table., returning a <code><a href="../../tibble/html/tibble.html">tibble</a></code>. This makes it friendly for pipe-oriented programming with <a href="../../magrittr/html/magrittr.html">magrittr</a>. </p> <h3>Usage</h3> <pre> bind_re_match(df, from, ..., keep_match = FALSE) bind_re_match_(df, from, ..., keep_match = FALSE) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>df</code></td> <td> <p>A data frame.</p> </td></tr> <tr valign="top"><td><code>from</code></td> <td> <p>Name of column to use as input for <code><a href="re_match.html">re_match</a></code>. <code><a href="bind_re_match.html">bind_re_match</a></code> takes unquoted names, while <code><a href="bind_re_match.html">bind_re_match_</a></code> takes quoted names.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Arguments (including <code>pattern</code>) to pass to <code><a href="re_match.html">re_match</a></code>.</p> </td></tr> <tr valign="top"><td><code>keep_match</code></td> <td> <p>Should the column <code>.match</code> be included in the results? Defaults to <code>FALSE</code>, to avoid column name collisions in the case that <code><a href="bind_re_match.html">bind_re_match</a></code> is called multiple times in succession.</p> </td></tr> </table> <h3>Functions</h3> <ul> <li> <p><code>bind_re_match_</code>: Standard-evaluation version that takes a quoted column name. </p> </li></ul> <h3>Note</h3> <p>If named capture groups will result in multiple columns with the same column name, <code><a href="../../tibble/html/repair_names.html">repair_names</a></code> will be called on the resulting table. </p> <h3>See Also</h3> <p>Standard-evaluation version <code><a href="bind_re_match.html">bind_re_match_</a></code> that is suitable for programming. </p> <h3>Examples</h3> <pre> match_cars <- tibble::rownames_to_column(mtcars) bind_re_match(match_cars, rowname, "^(?<make>\\w+) ?(?<model>.+)?$") </pre> <hr /><div style="text-align: center;">[Package <em>rematch2</em> version 2.1.2 <a href="00Index.html">Index</a>]</div> </body></html>