mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
Deploying to gh-pages from @ agdamsbo/FreesearchR@fab5c6cf22 🚀
This commit is contained in:
parent
352b93f7f7
commit
6893cba741
157 changed files with 601 additions and 412 deletions
|
|
@ -1,7 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Extended cutting function with fall-back to the native base::cut — cut_var • FreesearchR</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/Montserrat-0.4.10/font.css" rel="stylesheet"><link href="../deps/Public_Sans-0.4.10/font.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><link href="../extra.css" rel="stylesheet"><meta property="og:title" content="Extended cutting function with fall-back to the native base::cut — cut_var"><meta name="description" content="Extended cutting function with fall-back to the native base::cut
|
||||
Simplify a factor to only the top or bottom n levels"><meta property="og:description" content="Extended cutting function with fall-back to the native base::cut
|
||||
Simplify a factor to only the top or bottom n levels"><meta property="og:image" content="https://agdamsbo.github.io/FreesearchR/logo.png"><script defer src="https://stats.freesearchr.org/script.js" data-website-id="85bfd1e8-2cbe-4a4a-aa34-1dfb2960905b"></script></head><body>
|
||||
Simplify a factor to only the top or bottom n levels
|
||||
Subset first part of string to factor"><meta property="og:description" content="Extended cutting function with fall-back to the native base::cut
|
||||
Simplify a factor to only the top or bottom n levels
|
||||
Subset first part of string to factor"><meta property="og:image" content="https://agdamsbo.github.io/FreesearchR/logo.png"><script defer src="https://stats.freesearchr.org/script.js" data-website-id="85bfd1e8-2cbe-4a4a-aa34-1dfb2960905b"></script></head><body>
|
||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||
|
||||
|
||||
|
|
@ -9,7 +11,7 @@ Simplify a factor to only the top or bottom n levels"><meta property="og:image"
|
|||
|
||||
<a class="navbar-brand me-2" href="../index.html">FreesearchR</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.12.1</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.12.2</small>
|
||||
|
||||
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
|
|
@ -40,13 +42,14 @@ Simplify a factor to only the top or bottom n levels"><meta property="og:image"
|
|||
<div class="row">
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
<img src="../logo.png" class="logo" alt=""><h1>Extended cutting function with fall-back to the native base::cut</h1>
|
||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/FreesearchR/blob/v25.12.1/R/cut_var.R" class="external-link"><code>R/cut_var.R</code></a></small>
|
||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/FreesearchR/blob/main/R/cut_var.R" class="external-link"><code>R/cut_var.R</code></a></small>
|
||||
<div class="d-none name"><code>cut_var.Rd</code></div>
|
||||
</div>
|
||||
|
||||
<div class="ref-description section level2">
|
||||
<p>Extended cutting function with fall-back to the native base::cut</p>
|
||||
<p>Simplify a factor to only the top or bottom n levels</p>
|
||||
<p>Subset first part of string to factor</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
|
|
@ -83,7 +86,10 @@ Simplify a factor to only the top or bottom n levels"><meta property="og:image"
|
|||
<span><span class="fu">cut_var</span><span class="op">(</span><span class="va">x</span>, breaks <span class="op">=</span> <span class="cn">NULL</span>, start.on.monday <span class="op">=</span> <span class="cn">TRUE</span>, <span class="va">...</span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
<span><span class="co"># S3 method for class 'factor'</span></span>
|
||||
<span><span class="fu">cut_var</span><span class="op">(</span><span class="va">x</span>, breaks <span class="op">=</span> <span class="cn">NULL</span>, type <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"top"</span>, <span class="st">"bottom"</span><span class="op">)</span>, other <span class="op">=</span> <span class="st">"Other"</span>, <span class="va">...</span><span class="op">)</span></span></code></pre></div>
|
||||
<span><span class="fu">cut_var</span><span class="op">(</span><span class="va">x</span>, breaks <span class="op">=</span> <span class="cn">NULL</span>, type <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"top"</span>, <span class="st">"bottom"</span><span class="op">)</span>, other <span class="op">=</span> <span class="st">"Other"</span>, <span class="va">...</span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
<span><span class="co"># S3 method for class 'character'</span></span>
|
||||
<span><span class="fu">cut_var</span><span class="op">(</span><span class="va">x</span>, breaks <span class="op">=</span> <span class="cn">NULL</span>, type <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"characters"</span>, <span class="st">"words"</span><span class="op">)</span>, <span class="va">...</span><span class="op">)</span></span></code></pre></div>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
|
|
@ -105,6 +111,7 @@ Simplify a factor to only the top or bottom n levels"><meta property="og:image"
|
|||
<div class="section level2">
|
||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||
<p>factor</p>
|
||||
<p>factor</p>
|
||||
<p>factor</p>
|
||||
</div>
|
||||
|
||||
|
|
@ -187,6 +194,11 @@ Simplify a factor to only the top or bottom n levels"><meta property="og:image"
|
|||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 4 1 Other </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 10 7 5 </span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"Sunday"</span>, <span class="st">"This week is short"</span><span class="op">)</span> <span class="op">|></span> <span class="fu">cut_var</span><span class="op">(</span>breaks <span class="op">=</span> <span class="fl">3</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] Sun Thi</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> attr(,"brks")</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Levels: Sun Thi</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue