mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 09:59:39 +02:00
Deploying to gh-pages from @ agdamsbo/freesearcheR@49695a5f41 🚀
This commit is contained in:
parent
367892ec75
commit
6856f48e2a
35 changed files with 12196 additions and 3 deletions
|
@ -2,7 +2,7 @@ pandoc: 3.1.11
|
||||||
pkgdown: 2.1.1
|
pkgdown: 2.1.1
|
||||||
pkgdown_sha: ~
|
pkgdown_sha: ~
|
||||||
articles: {}
|
articles: {}
|
||||||
last_built: 2025-01-16T10:40Z
|
last_built: 2025-01-16T11:00Z
|
||||||
urls:
|
urls:
|
||||||
reference: https://agdamsbo.github.io/freesearcheR/reference
|
reference: https://agdamsbo.github.io/freesearcheR/reference
|
||||||
article: https://agdamsbo.github.io/freesearcheR/articles
|
article: https://agdamsbo.github.io/freesearcheR/articles
|
||||||
|
|
92
reference/add_class_icon.html
Normal file
92
reference/add_class_icon.html
Normal file
|
@ -0,0 +1,92 @@
|
||||||
|
<!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>Convert class grid column to icon — add_class_icon • freesearcheR</title><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/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><meta property="og:title" content="Convert class grid column to icon — add_class_icon"><meta name="description" content="Convert class grid column to icon"><meta property="og:description" content="Convert class grid column to icon"><!-- dependencies from examples --><script src="libs/htmlwidgets-1.6.4/htmlwidgets.js"></script><script src="libs/datagrid-binding-0.3.4/datagrid.js"></script><link href="libs/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="libs/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Convert class grid column to icon</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/data-summary.R" class="external-link"><code>R/data-summary.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>add_class_icon.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Convert class grid column to icon</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">add_class_icon</span><span class="op">(</span><span class="va">grid</span>, column <span class="op">=</span> <span class="st">"class"</span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-grid">grid<a class="anchor" aria-label="anchor" href="#arg-grid"></a></dt>
|
||||||
|
<dd><p>grid</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-column">column<a class="anchor" aria-label="anchor" href="#arg-column"></a></dt>
|
||||||
|
<dd><p>column</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||||
|
<p>datagrid</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">mtcars</span> <span class="op">|></span></span></span>
|
||||||
|
<span class="r-in"><span> <span class="fu"><a href="overview_vars.html">overview_vars</a></span><span class="op">(</span><span class="op">)</span> <span class="op">|></span></span></span>
|
||||||
|
<span class="r-in"><span> <span class="fu">toastui</span><span class="fu">::</span><span class="fu"><a href="https://dreamrs.github.io/toastui/reference/datagrid.html" class="external-link">datagrid</a></span><span class="op">(</span><span class="op">)</span> <span class="op">|></span></span></span>
|
||||||
|
<span class="r-in"><span> <span class="fu">add_class_icon</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||||
|
<div class="datagrid html-widget" height="432.632880098888" id="htmlwidget-ac96cb3ee4656e2e9ec3" style="width:700px;height:432.632880098888px; margin-bottom: 15px;" width="700">
|
||||||
|
<div id="htmlwidget-ac96cb3ee4656e2e9ec3-container"></div>
|
||||||
|
</div>
|
||||||
|
<script type="application/json" data-for="htmlwidget-ac96cb3ee4656e2e9ec3">{"x":{"nrow":11,"ncol":6,"data":[["numeric","numeric","numeric","numeric","numeric","numeric","numeric","numeric","numeric","numeric","numeric"],["mpg","cyl","disp","hp","drat","wt","qsec","vs","am","gear","carb"],[0,0,0,0,0,0,0,0,0,0,0],[1,1,1,1,1,1,1,1,1,1,1],[25,3,27,22,22,29,30,2,2,3,6],[[21,21,22.8,21.4,18.7,18.1,14.3,24.4,22.8,19.2,17.8,16.4,17.3,15.2,10.4,10.4,14.7,32.4,30.4,33.9,21.5,15.5,15.2,13.3,19.2,27.3,26,30.4,15.8,19.7,15,21.4],[6,6,4,6,8,6,8,4,4,6,6,8,8,8,8,8,8,4,4,4,4,8,8,8,8,4,4,4,8,6,8,4],[160,160,108,258,360,225,360,146.7,140.8,167.6,167.6,275.8,275.8,275.8,472,460,440,78.7,75.7,71.09999999999999,120.1,318,304,350,400,79,120.3,95.09999999999999,351,145,301,121],[110,110,93,110,175,105,245,62,95,123,123,180,180,180,205,215,230,66,52,65,97,150,150,245,175,66,91,113,264,175,335,109],[3.9,3.9,3.85,3.08,3.15,2.76,3.21,3.69,3.92,3.92,3.92,3.07,3.07,3.07,2.93,3,3.23,4.08,4.93,4.22,3.7,2.76,3.15,3.73,3.08,4.08,4.43,3.77,4.22,3.62,3.54,4.11],[2.62,2.875,2.32,3.215,3.44,3.46,3.57,3.19,3.15,3.44,3.44,4.07,3.73,3.78,5.25,5.424,5.345,2.2,1.615,1.835,2.465,3.52,3.435,3.84,3.845,1.935,2.14,1.513,3.17,2.77,3.57,2.78],[16.46,17.02,18.61,19.44,17.02,20.22,15.84,20,22.9,18.3,18.9,17.4,17.6,18,17.98,17.82,17.42,19.47,18.52,19.9,20.01,16.87,17.3,15.41,17.05,18.9,16.7,16.9,14.5,15.5,14.6,18.6],[0,0,1,1,0,1,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,0,1,0,0,0,1],[1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1],[4,4,4,3,3,3,3,4,4,4,4,3,3,3,3,3,3,4,4,4,3,3,3,3,3,4,5,5,5,5,5,4],[4,4,1,1,2,1,4,2,2,4,4,3,3,3,4,4,4,1,2,1,1,2,2,4,2,1,2,2,4,6,8,2]]],"colnames":["class","name","n_missing","p_complete","n_unique","vals"],"options":{"columns":[{"header":"class","name":"class","sortable":true,"align":"left","whiteSpace":"normal","renderer":{"styles":{"wordBreak":"normal"},"type":"datagrid.renderer.format","options":{"formatted":["<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>"]}},"width":60},{"header":"name","name":"name","sortable":true,"align":"left","whiteSpace":"normal","renderer":{"styles":{"wordBreak":"normal"}}},{"header":"n_missing","name":"n_missing","sortable":true,"align":"right","whiteSpace":"normal","renderer":{"styles":{"wordBreak":"normal"}}},{"header":"p_complete","name":"p_complete","sortable":true,"align":"right","whiteSpace":"normal","renderer":{"styles":{"wordBreak":"normal"}}},{"header":"n_unique","name":"n_unique","sortable":true,"align":"right","whiteSpace":"normal","renderer":{"styles":{"wordBreak":"normal"}}},{"header":"vals","name":"vals","sortable":true,"align":"left","whiteSpace":"normal","renderer":{"styles":{"wordBreak":"normal"}}}],"bodyHeight":"fitToParent","draggable":false,"usageStatistics":false,"contextMenu":null,"rowHeight":"auto"},"theme":"clean","themeOptions":{"cell":{"normal":{"showHorizontalBorder":true}}},"language":"en","languageOptions":[],"filters":false,"rowAttributes":[],"validationInput":false,"dataAsInput":false,"dragInput":false},"evals":["options.columns.0.renderer.type"],"jsHooks":[]}</script></code></pre></div>
|
||||||
|
</div>
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
99
reference/add_sparkline.html
Normal file
99
reference/add_sparkline.html
Normal file
File diff suppressed because one or more lines are too long
87
reference/create_overview_datagrid.html
Normal file
87
reference/create_overview_datagrid.html
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<!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>Create a data overview datagrid — create_overview_datagrid • freesearcheR</title><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/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><meta property="og:title" content="Create a data overview datagrid — create_overview_datagrid"><meta name="description" content="Create a data overview datagrid"><meta property="og:description" content="Create a data overview datagrid"><!-- dependencies from examples --><script src="libs/htmlwidgets-1.6.4/htmlwidgets.js"></script><script src="libs/datagrid-binding-0.3.4/datagrid.js"></script><link href="libs/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="libs/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Create a data overview datagrid</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/data-summary.R" class="external-link"><code>R/data-summary.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>create_overview_datagrid.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Create a data overview datagrid</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">create_overview_datagrid</span><span class="op">(</span><span class="va">data</span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
|
||||||
|
<dd><p>data</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||||
|
<p>datagrid</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">mtcars</span> <span class="op">|></span></span></span>
|
||||||
|
<span class="r-in"><span> <span class="fu"><a href="overview_vars.html">overview_vars</a></span><span class="op">(</span><span class="op">)</span> <span class="op">|></span></span></span>
|
||||||
|
<span class="r-in"><span> <span class="fu">create_overview_datagrid</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||||
|
<div class="datagrid html-widget" height="432.632880098888" id="htmlwidget-b25b670b028f478bf741" style="width:700px;height:432.632880098888px; margin-bottom: 15px;" width="700">
|
||||||
|
<div id="htmlwidget-b25b670b028f478bf741-container"></div>
|
||||||
|
</div>
|
||||||
|
<script type="application/json" data-for="htmlwidget-b25b670b028f478bf741">{"x":{"nrow":11,"ncol":6,"data":[["numeric","numeric","numeric","numeric","numeric","numeric","numeric","numeric","numeric","numeric","numeric"],["mpg","cyl","disp","hp","drat","wt","qsec","vs","am","gear","carb"],[0,0,0,0,0,0,0,0,0,0,0],[1,1,1,1,1,1,1,1,1,1,1],[25,3,27,22,22,29,30,2,2,3,6],[[21,21,22.8,21.4,18.7,18.1,14.3,24.4,22.8,19.2,17.8,16.4,17.3,15.2,10.4,10.4,14.7,32.4,30.4,33.9,21.5,15.5,15.2,13.3,19.2,27.3,26,30.4,15.8,19.7,15,21.4],[6,6,4,6,8,6,8,4,4,6,6,8,8,8,8,8,8,4,4,4,4,8,8,8,8,4,4,4,8,6,8,4],[160,160,108,258,360,225,360,146.7,140.8,167.6,167.6,275.8,275.8,275.8,472,460,440,78.7,75.7,71.09999999999999,120.1,318,304,350,400,79,120.3,95.09999999999999,351,145,301,121],[110,110,93,110,175,105,245,62,95,123,123,180,180,180,205,215,230,66,52,65,97,150,150,245,175,66,91,113,264,175,335,109],[3.9,3.9,3.85,3.08,3.15,2.76,3.21,3.69,3.92,3.92,3.92,3.07,3.07,3.07,2.93,3,3.23,4.08,4.93,4.22,3.7,2.76,3.15,3.73,3.08,4.08,4.43,3.77,4.22,3.62,3.54,4.11],[2.62,2.875,2.32,3.215,3.44,3.46,3.57,3.19,3.15,3.44,3.44,4.07,3.73,3.78,5.25,5.424,5.345,2.2,1.615,1.835,2.465,3.52,3.435,3.84,3.845,1.935,2.14,1.513,3.17,2.77,3.57,2.78],[16.46,17.02,18.61,19.44,17.02,20.22,15.84,20,22.9,18.3,18.9,17.4,17.6,18,17.98,17.82,17.42,19.47,18.52,19.9,20.01,16.87,17.3,15.41,17.05,18.9,16.7,16.9,14.5,15.5,14.6,18.6],[0,0,1,1,0,1,0,1,1,1,1,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,0,1,0,0,0,1],[1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1],[4,4,4,3,3,3,3,4,4,4,4,3,3,3,3,3,3,4,4,4,3,3,3,3,3,4,5,5,5,5,5,4],[4,4,1,1,2,1,4,2,2,4,4,3,3,3,4,4,4,1,2,1,1,2,2,4,2,1,2,2,4,6,8,2]]],"colnames":["class","name","n_missing","p_complete","n_unique","vals"],"options":{"columns":[{"header":"Class","name":"class","sortable":true,"align":"left","width":60,"resizable":true,"renderer":{"type":"datagrid.renderer.format","options":{"formatted":["<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>","<i class=\"fas fa-calculator\" role=\"presentation\" aria-label=\"calculator icon\"><\/i>"]}}},{"header":"Name","name":"name","sortable":true,"align":"left","width":80,"resizable":true},{"header":"Missing","name":"n_missing","sortable":true,"align":"right","width":80,"resizable":true},{"header":"Complete","name":"p_complete","sortable":true,"align":"right","width":80,"resizable":true,"formatter":"function(obj) {return (obj.value*100).toFixed(0) + '%';}"},{"header":"Unique","name":"n_unique","sortable":true,"align":"right","width":80,"resizable":true},{"header":"Plot","name":"vals","sortable":true,"align":"left","width":80,"resizable":true}],"bodyHeight":"fitToParent","draggable":false,"usageStatistics":false,"contextMenu":null,"rowHeight":"auto"},"theme":"default","themeOptions":{"selection":{},"scrollbar":{},"outline":{},"frozenBorder":{},"area":{"header":{"border":"#4C566A"},"body":{},"summary":{}},"row":{"odd":{},"even":{},"dummy":{},"hover":{}},"cell":{"normal":{"background":"#FFF","border":"#D8DEE9","showVerticalBorder":true,"showHorizontalBorder":true},"header":{"border":"#D8DEE9"},"rowHeader":{},"summary":{"border":"#D8DEE9","showVerticalBorder":true,"showHorizontalBorder":true},"selectedHeader":{},"selectedRowHeader":{},"focused":{},"focusedInactive":{},"required":{},"editable":{},"disabled":{},"invalid":{}}},"language":"en","languageOptions":[],"filters":false,"rowAttributes":[],"validationInput":false,"dataAsInput":false,"dragInput":false},"evals":["options.columns.0.renderer.type","options.columns.3.formatter"],"jsHooks":[]}</script></code></pre></div>
|
||||||
|
</div>
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
92
reference/data-summary.html
Normal file
92
reference/data-summary.html
Normal file
|
@ -0,0 +1,92 @@
|
||||||
|
<!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>Data summary module — data-summary • freesearcheR</title><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/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><meta property="og:title" content="Data summary module — data-summary"><meta name="description" content="Data summary module"><meta property="og:description" content="Data summary module"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Data summary module</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/data-summary.R" class="external-link"><code>R/data-summary.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>data-summary.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Data summary module</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">data_summary_ui</span><span class="op">(</span><span class="va">id</span><span class="op">)</span></span>
|
||||||
|
<span></span>
|
||||||
|
<span><span class="fu">data_summary_server</span><span class="op">(</span><span class="va">id</span>, <span class="va">data</span>, <span class="va">color.main</span>, <span class="va">color.sec</span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-id">id<a class="anchor" aria-label="anchor" href="#arg-id"></a></dt>
|
||||||
|
<dd><p>id</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
|
||||||
|
<dd><p>data</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-color-main">color.main<a class="anchor" aria-label="anchor" href="#arg-color-main"></a></dt>
|
||||||
|
<dd><p>main color</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-color-sec">color.sec<a class="anchor" aria-label="anchor" href="#arg-color-sec"></a></dt>
|
||||||
|
<dd><p>secondary color</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||||
|
<p>Shiny ui module</p>
|
||||||
|
<p>shiny server module</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
8
reference/data_summary_server.html
Normal file
8
reference/data_summary_server.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0;URL=https://agdamsbo.github.io/freesearcheR/reference/data-summary.html" />
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<link rel="canonical" href="https://agdamsbo.github.io/freesearcheR/reference/data-summary.html">
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
|
8
reference/data_summary_ui.html
Normal file
8
reference/data_summary_ui.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0;URL=https://agdamsbo.github.io/freesearcheR/reference/data-summary.html" />
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<link rel="canonical" href="https://agdamsbo.github.io/freesearcheR/reference/data-summary.html">
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
<span class="r-out co"><span class="r-pr">#></span> z$qr <- NULL</span>
|
<span class="r-out co"><span class="r-pr">#></span> z$qr <- NULL</span>
|
||||||
<span class="r-out co"><span class="r-pr">#></span> z</span>
|
<span class="r-out co"><span class="r-pr">#></span> z</span>
|
||||||
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
<span class="r-out co"><span class="r-pr">#></span> }</span>
|
||||||
<span class="r-out co"><span class="r-pr">#></span> <bytecode: 0x560d63b83df0></span>
|
<span class="r-out co"><span class="r-pr">#></span> <bytecode: 0x55568fd1d8f8></span>
|
||||||
<span class="r-out co"><span class="r-pr">#></span> <environment: namespace:stats></span>
|
<span class="r-out co"><span class="r-pr">#></span> <environment: namespace:stats></span>
|
||||||
</code></pre></div>
|
</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -44,6 +44,18 @@
|
||||||
|
|
||||||
<dl><dt>
|
<dl><dt>
|
||||||
|
|
||||||
|
<code><a href="add_class_icon.html">add_class_icon()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Convert class grid column to icon</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="add_sparkline.html">add_sparkline()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Add sparkline to datagrid</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
<code><a href="argsstring2list.html">argsstring2list()</a></code>
|
<code><a href="argsstring2list.html">argsstring2list()</a></code>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
|
@ -56,6 +68,12 @@
|
||||||
<dd>Print a flexible baseline characteristics table</dd>
|
<dd>Print a flexible baseline characteristics table</dd>
|
||||||
</dl><dl><dt>
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="create_overview_datagrid.html">create_overview_datagrid()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Create a data overview datagrid</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
<code><a href="custom_theme.html">custom_theme()</a></code>
|
<code><a href="custom_theme.html">custom_theme()</a></code>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
|
@ -74,6 +92,12 @@
|
||||||
<dd>Title</dd>
|
<dd>Title</dd>
|
||||||
</dl><dl><dt>
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="data-summary.html">data_summary_ui()</a></code> <code><a href="data-summary.html">data_summary_server()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Data summary module</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
<code><a href="default_format_arguments.html">default_format_arguments()</a></code>
|
<code><a href="default_format_arguments.html">default_format_arguments()</a></code>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
|
@ -122,18 +146,36 @@
|
||||||
<dd>Test class</dd>
|
<dd>Test class</dd>
|
||||||
</dl><dl><dt>
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="is_consecutive.html">is_consecutive()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Checks if elements in vector are equally spaced as indication of ID</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
<code><a href="is_datetime.html">is_datetime()</a></code>
|
<code><a href="is_datetime.html">is_datetime()</a></code>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
<dd>Test is date/datetime/time</dd>
|
<dd>Test is date/datetime/time</dd>
|
||||||
</dl><dl><dt>
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="m_datafileUI.html">m_datafileUI()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Shiny UI module to load a data file</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
<code><a href="modify_qmd.html">modify_qmd()</a></code>
|
<code><a href="modify_qmd.html">modify_qmd()</a></code>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
<dd>Wrapper to modify quarto file to render specific formats</dd>
|
<dd>Wrapper to modify quarto file to render specific formats</dd>
|
||||||
</dl><dl><dt>
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="overview_vars.html">overview_vars()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Create a data overview data.frame ready for sparklines</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
<code><a href="read_input.html">read_input()</a></code>
|
<code><a href="read_input.html">read_input()</a></code>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
|
@ -164,6 +206,12 @@
|
||||||
<dd>Create table of regression model</dd>
|
<dd>Create table of regression model</dd>
|
||||||
</dl><dl><dt>
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="remove_na_attr.html">remove_na_attr()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Remove NA labels</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
<code><a href="shiny_freesearcheR.html">shiny_freesearcheR()</a></code>
|
<code><a href="shiny_freesearcheR.html">shiny_freesearcheR()</a></code>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
|
@ -182,6 +230,18 @@
|
||||||
<dd>A substitue to gtsummary::tbl_merge, that will use list names for the tab spanner names.</dd>
|
<dd>A substitue to gtsummary::tbl_merge, that will use list names for the tab spanner names.</dd>
|
||||||
</dl><dl><dt>
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="update-variables.html">update_variables_ui()</a></code> <code><a href="update-variables.html">update_variables_server()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Select, rename and convert variables</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
|
<code><a href="update_variables_datagrid.html">update_variables_datagrid()</a></code>
|
||||||
|
|
||||||
|
</dt>
|
||||||
|
<dd>Modified from the datamods pacakge</dd>
|
||||||
|
</dl><dl><dt>
|
||||||
|
|
||||||
<code><a href="write_quarto.html">write_quarto()</a></code>
|
<code><a href="write_quarto.html">write_quarto()</a></code>
|
||||||
|
|
||||||
</dt>
|
</dt>
|
||||||
|
|
85
reference/is_consecutive.html
Normal file
85
reference/is_consecutive.html
Normal file
|
@ -0,0 +1,85 @@
|
||||||
|
<!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>Checks if elements in vector are equally spaced as indication of ID — is_consecutive • freesearcheR</title><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/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><meta property="og:title" content="Checks if elements in vector are equally spaced as indication of ID — is_consecutive"><meta name="description" content="Checks if elements in vector are equally spaced as indication of ID"><meta property="og:description" content="Checks if elements in vector are equally spaced as indication of ID"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Checks if elements in vector are equally spaced as indication of ID</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/data-summary.R" class="external-link"><code>R/data-summary.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>is_consecutive.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Checks if elements in vector are equally spaced as indication of ID</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">is_consecutive</span><span class="op">(</span><span class="va">data</span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
|
||||||
|
<dd><p>vector</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||||
|
<p>logical</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fl">1</span><span class="op">:</span><span class="fl">10</span> <span class="op">|></span> <span class="fu">is_consecutive</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE</span>
|
||||||
|
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</span><span class="fl">1</span><span class="op">:</span><span class="fl">100</span>,<span class="fl">40</span><span class="op">)</span> <span class="op">|></span> <span class="fu">is_consecutive</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> [1] FALSE</span>
|
||||||
|
</code></pre></div>
|
||||||
|
</div>
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
2
reference/libs/apexcharter-binding-0.4.4/apexcharter.js
Normal file
2
reference/libs/apexcharter-binding-0.4.4/apexcharter.js
Normal file
File diff suppressed because one or more lines are too long
2
reference/libs/datagrid-binding-0.3.4/datagrid.js
Normal file
2
reference/libs/datagrid-binding-0.3.4/datagrid.js
Normal file
File diff suppressed because one or more lines are too long
8028
reference/libs/font-awesome-6.5.2/css/all.css
Normal file
8028
reference/libs/font-awesome-6.5.2/css/all.css
Normal file
File diff suppressed because it is too large
Load diff
9
reference/libs/font-awesome-6.5.2/css/all.min.css
vendored
Normal file
9
reference/libs/font-awesome-6.5.2/css/all.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
2194
reference/libs/font-awesome-6.5.2/css/v4-shims.css
Normal file
2194
reference/libs/font-awesome-6.5.2/css/v4-shims.css
Normal file
File diff suppressed because it is too large
Load diff
6
reference/libs/font-awesome-6.5.2/css/v4-shims.min.css
vendored
Normal file
6
reference/libs/font-awesome-6.5.2/css/v4-shims.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-brands-400.ttf
Normal file
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-brands-400.ttf
Normal file
Binary file not shown.
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-brands-400.woff2
Normal file
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-brands-400.woff2
Normal file
Binary file not shown.
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-regular-400.ttf
Normal file
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-regular-400.ttf
Normal file
Binary file not shown.
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-regular-400.woff2
Normal file
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-regular-400.woff2
Normal file
Binary file not shown.
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-solid-900.ttf
Normal file
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-solid-900.ttf
Normal file
Binary file not shown.
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-solid-900.woff2
Normal file
BIN
reference/libs/font-awesome-6.5.2/webfonts/fa-solid-900.woff2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
21
reference/libs/htmltools-fill-0.5.8.1/fill.css
Normal file
21
reference/libs/htmltools-fill-0.5.8.1/fill.css
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
@layer htmltools {
|
||||||
|
.html-fill-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
/* Prevent the container from expanding vertically or horizontally beyond its
|
||||||
|
parent's constraints. */
|
||||||
|
min-height: 0;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.html-fill-container > .html-fill-item {
|
||||||
|
/* Fill items can grow and shrink freely within
|
||||||
|
available vertical space in fillable container */
|
||||||
|
flex: 1 1 auto;
|
||||||
|
min-height: 0;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.html-fill-container > :not(.html-fill-item) {
|
||||||
|
/* Prevent shrinking or growing of non-fill items */
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
}
|
901
reference/libs/htmlwidgets-1.6.4/htmlwidgets.js
Normal file
901
reference/libs/htmlwidgets-1.6.4/htmlwidgets.js
Normal file
|
@ -0,0 +1,901 @@
|
||||||
|
(function() {
|
||||||
|
// If window.HTMLWidgets is already defined, then use it; otherwise create a
|
||||||
|
// new object. This allows preceding code to set options that affect the
|
||||||
|
// initialization process (though none currently exist).
|
||||||
|
window.HTMLWidgets = window.HTMLWidgets || {};
|
||||||
|
|
||||||
|
// See if we're running in a viewer pane. If not, we're in a web browser.
|
||||||
|
var viewerMode = window.HTMLWidgets.viewerMode =
|
||||||
|
/\bviewer_pane=1\b/.test(window.location);
|
||||||
|
|
||||||
|
// See if we're running in Shiny mode. If not, it's a static document.
|
||||||
|
// Note that static widgets can appear in both Shiny and static modes, but
|
||||||
|
// obviously, Shiny widgets can only appear in Shiny apps/documents.
|
||||||
|
var shinyMode = window.HTMLWidgets.shinyMode =
|
||||||
|
typeof(window.Shiny) !== "undefined" && !!window.Shiny.outputBindings;
|
||||||
|
|
||||||
|
// We can't count on jQuery being available, so we implement our own
|
||||||
|
// version if necessary.
|
||||||
|
function querySelectorAll(scope, selector) {
|
||||||
|
if (typeof(jQuery) !== "undefined" && scope instanceof jQuery) {
|
||||||
|
return scope.find(selector);
|
||||||
|
}
|
||||||
|
if (scope.querySelectorAll) {
|
||||||
|
return scope.querySelectorAll(selector);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function asArray(value) {
|
||||||
|
if (value === null)
|
||||||
|
return [];
|
||||||
|
if ($.isArray(value))
|
||||||
|
return value;
|
||||||
|
return [value];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Implement jQuery's extend
|
||||||
|
function extend(target /*, ... */) {
|
||||||
|
if (arguments.length == 1) {
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
for (var prop in source) {
|
||||||
|
if (source.hasOwnProperty(prop)) {
|
||||||
|
target[prop] = source[prop];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE8 doesn't support Array.forEach.
|
||||||
|
function forEach(values, callback, thisArg) {
|
||||||
|
if (values.forEach) {
|
||||||
|
values.forEach(callback, thisArg);
|
||||||
|
} else {
|
||||||
|
for (var i = 0; i < values.length; i++) {
|
||||||
|
callback.call(thisArg, values[i], i, values);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Replaces the specified method with the return value of funcSource.
|
||||||
|
//
|
||||||
|
// Note that funcSource should not BE the new method, it should be a function
|
||||||
|
// that RETURNS the new method. funcSource receives a single argument that is
|
||||||
|
// the overridden method, it can be called from the new method. The overridden
|
||||||
|
// method can be called like a regular function, it has the target permanently
|
||||||
|
// bound to it so "this" will work correctly.
|
||||||
|
function overrideMethod(target, methodName, funcSource) {
|
||||||
|
var superFunc = target[methodName] || function() {};
|
||||||
|
var superFuncBound = function() {
|
||||||
|
return superFunc.apply(target, arguments);
|
||||||
|
};
|
||||||
|
target[methodName] = funcSource(superFuncBound);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add a method to delegator that, when invoked, calls
|
||||||
|
// delegatee.methodName. If there is no such method on
|
||||||
|
// the delegatee, but there was one on delegator before
|
||||||
|
// delegateMethod was called, then the original version
|
||||||
|
// is invoked instead.
|
||||||
|
// For example:
|
||||||
|
//
|
||||||
|
// var a = {
|
||||||
|
// method1: function() { console.log('a1'); }
|
||||||
|
// method2: function() { console.log('a2'); }
|
||||||
|
// };
|
||||||
|
// var b = {
|
||||||
|
// method1: function() { console.log('b1'); }
|
||||||
|
// };
|
||||||
|
// delegateMethod(a, b, "method1");
|
||||||
|
// delegateMethod(a, b, "method2");
|
||||||
|
// a.method1();
|
||||||
|
// a.method2();
|
||||||
|
//
|
||||||
|
// The output would be "b1", "a2".
|
||||||
|
function delegateMethod(delegator, delegatee, methodName) {
|
||||||
|
var inherited = delegator[methodName];
|
||||||
|
delegator[methodName] = function() {
|
||||||
|
var target = delegatee;
|
||||||
|
var method = delegatee[methodName];
|
||||||
|
|
||||||
|
// The method doesn't exist on the delegatee. Instead,
|
||||||
|
// call the method on the delegator, if it exists.
|
||||||
|
if (!method) {
|
||||||
|
target = delegator;
|
||||||
|
method = inherited;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (method) {
|
||||||
|
return method.apply(target, arguments);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Implement a vague facsimilie of jQuery's data method
|
||||||
|
function elementData(el, name, value) {
|
||||||
|
if (arguments.length == 2) {
|
||||||
|
return el["htmlwidget_data_" + name];
|
||||||
|
} else if (arguments.length == 3) {
|
||||||
|
el["htmlwidget_data_" + name] = value;
|
||||||
|
return el;
|
||||||
|
} else {
|
||||||
|
throw new Error("Wrong number of arguments for elementData: " +
|
||||||
|
arguments.length);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// http://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
|
||||||
|
function escapeRegExp(str) {
|
||||||
|
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
||||||
|
}
|
||||||
|
|
||||||
|
function hasClass(el, className) {
|
||||||
|
var re = new RegExp("\\b" + escapeRegExp(className) + "\\b");
|
||||||
|
return re.test(el.className);
|
||||||
|
}
|
||||||
|
|
||||||
|
// elements - array (or array-like object) of HTML elements
|
||||||
|
// className - class name to test for
|
||||||
|
// include - if true, only return elements with given className;
|
||||||
|
// if false, only return elements *without* given className
|
||||||
|
function filterByClass(elements, className, include) {
|
||||||
|
var results = [];
|
||||||
|
for (var i = 0; i < elements.length; i++) {
|
||||||
|
if (hasClass(elements[i], className) == include)
|
||||||
|
results.push(elements[i]);
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
function on(obj, eventName, func) {
|
||||||
|
if (obj.addEventListener) {
|
||||||
|
obj.addEventListener(eventName, func, false);
|
||||||
|
} else if (obj.attachEvent) {
|
||||||
|
obj.attachEvent(eventName, func);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function off(obj, eventName, func) {
|
||||||
|
if (obj.removeEventListener)
|
||||||
|
obj.removeEventListener(eventName, func, false);
|
||||||
|
else if (obj.detachEvent) {
|
||||||
|
obj.detachEvent(eventName, func);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Translate array of values to top/right/bottom/left, as usual with
|
||||||
|
// the "padding" CSS property
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/padding
|
||||||
|
function unpackPadding(value) {
|
||||||
|
if (typeof(value) === "number")
|
||||||
|
value = [value];
|
||||||
|
if (value.length === 1) {
|
||||||
|
return {top: value[0], right: value[0], bottom: value[0], left: value[0]};
|
||||||
|
}
|
||||||
|
if (value.length === 2) {
|
||||||
|
return {top: value[0], right: value[1], bottom: value[0], left: value[1]};
|
||||||
|
}
|
||||||
|
if (value.length === 3) {
|
||||||
|
return {top: value[0], right: value[1], bottom: value[2], left: value[1]};
|
||||||
|
}
|
||||||
|
if (value.length === 4) {
|
||||||
|
return {top: value[0], right: value[1], bottom: value[2], left: value[3]};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Convert an unpacked padding object to a CSS value
|
||||||
|
function paddingToCss(paddingObj) {
|
||||||
|
return paddingObj.top + "px " + paddingObj.right + "px " + paddingObj.bottom + "px " + paddingObj.left + "px";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Makes a number suitable for CSS
|
||||||
|
function px(x) {
|
||||||
|
if (typeof(x) === "number")
|
||||||
|
return x + "px";
|
||||||
|
else
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Retrieves runtime widget sizing information for an element.
|
||||||
|
// The return value is either null, or an object with fill, padding,
|
||||||
|
// defaultWidth, defaultHeight fields.
|
||||||
|
function sizingPolicy(el) {
|
||||||
|
var sizingEl = document.querySelector("script[data-for='" + el.id + "'][type='application/htmlwidget-sizing']");
|
||||||
|
if (!sizingEl)
|
||||||
|
return null;
|
||||||
|
var sp = JSON.parse(sizingEl.textContent || sizingEl.text || "{}");
|
||||||
|
if (viewerMode) {
|
||||||
|
return sp.viewer;
|
||||||
|
} else {
|
||||||
|
return sp.browser;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// @param tasks Array of strings (or falsy value, in which case no-op).
|
||||||
|
// Each element must be a valid JavaScript expression that yields a
|
||||||
|
// function. Or, can be an array of objects with "code" and "data"
|
||||||
|
// properties; in this case, the "code" property should be a string
|
||||||
|
// of JS that's an expr that yields a function, and "data" should be
|
||||||
|
// an object that will be added as an additional argument when that
|
||||||
|
// function is called.
|
||||||
|
// @param target The object that will be "this" for each function
|
||||||
|
// execution.
|
||||||
|
// @param args Array of arguments to be passed to the functions. (The
|
||||||
|
// same arguments will be passed to all functions.)
|
||||||
|
function evalAndRun(tasks, target, args) {
|
||||||
|
if (tasks) {
|
||||||
|
forEach(tasks, function(task) {
|
||||||
|
var theseArgs = args;
|
||||||
|
if (typeof(task) === "object") {
|
||||||
|
theseArgs = theseArgs.concat([task.data]);
|
||||||
|
task = task.code;
|
||||||
|
}
|
||||||
|
var taskFunc = tryEval(task);
|
||||||
|
if (typeof(taskFunc) !== "function") {
|
||||||
|
throw new Error("Task must be a function! Source:\n" + task);
|
||||||
|
}
|
||||||
|
taskFunc.apply(target, theseArgs);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Attempt eval() both with and without enclosing in parentheses.
|
||||||
|
// Note that enclosing coerces a function declaration into
|
||||||
|
// an expression that eval() can parse
|
||||||
|
// (otherwise, a SyntaxError is thrown)
|
||||||
|
function tryEval(code) {
|
||||||
|
var result = null;
|
||||||
|
try {
|
||||||
|
result = eval("(" + code + ")");
|
||||||
|
} catch(error) {
|
||||||
|
if (!(error instanceof SyntaxError)) {
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
result = eval(code);
|
||||||
|
} catch(e) {
|
||||||
|
if (e instanceof SyntaxError) {
|
||||||
|
throw error;
|
||||||
|
} else {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function initSizing(el) {
|
||||||
|
var sizing = sizingPolicy(el);
|
||||||
|
if (!sizing)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var cel = document.getElementById("htmlwidget_container");
|
||||||
|
if (!cel)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (typeof(sizing.padding) !== "undefined") {
|
||||||
|
document.body.style.margin = "0";
|
||||||
|
document.body.style.padding = paddingToCss(unpackPadding(sizing.padding));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sizing.fill) {
|
||||||
|
document.body.style.overflow = "hidden";
|
||||||
|
document.body.style.width = "100%";
|
||||||
|
document.body.style.height = "100%";
|
||||||
|
document.documentElement.style.width = "100%";
|
||||||
|
document.documentElement.style.height = "100%";
|
||||||
|
cel.style.position = "absolute";
|
||||||
|
var pad = unpackPadding(sizing.padding);
|
||||||
|
cel.style.top = pad.top + "px";
|
||||||
|
cel.style.right = pad.right + "px";
|
||||||
|
cel.style.bottom = pad.bottom + "px";
|
||||||
|
cel.style.left = pad.left + "px";
|
||||||
|
el.style.width = "100%";
|
||||||
|
el.style.height = "100%";
|
||||||
|
|
||||||
|
return {
|
||||||
|
getWidth: function() { return cel.getBoundingClientRect().width; },
|
||||||
|
getHeight: function() { return cel.getBoundingClientRect().height; }
|
||||||
|
};
|
||||||
|
|
||||||
|
} else {
|
||||||
|
el.style.width = px(sizing.width);
|
||||||
|
el.style.height = px(sizing.height);
|
||||||
|
|
||||||
|
return {
|
||||||
|
getWidth: function() { return cel.getBoundingClientRect().width; },
|
||||||
|
getHeight: function() { return cel.getBoundingClientRect().height; }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Default implementations for methods
|
||||||
|
var defaults = {
|
||||||
|
find: function(scope) {
|
||||||
|
return querySelectorAll(scope, "." + this.name);
|
||||||
|
},
|
||||||
|
renderError: function(el, err) {
|
||||||
|
var $el = $(el);
|
||||||
|
|
||||||
|
this.clearError(el);
|
||||||
|
|
||||||
|
// Add all these error classes, as Shiny does
|
||||||
|
var errClass = "shiny-output-error";
|
||||||
|
if (err.type !== null) {
|
||||||
|
// use the classes of the error condition as CSS class names
|
||||||
|
errClass = errClass + " " + $.map(asArray(err.type), function(type) {
|
||||||
|
return errClass + "-" + type;
|
||||||
|
}).join(" ");
|
||||||
|
}
|
||||||
|
errClass = errClass + " htmlwidgets-error";
|
||||||
|
|
||||||
|
// Is el inline or block? If inline or inline-block, just display:none it
|
||||||
|
// and add an inline error.
|
||||||
|
var display = $el.css("display");
|
||||||
|
$el.data("restore-display-mode", display);
|
||||||
|
|
||||||
|
if (display === "inline" || display === "inline-block") {
|
||||||
|
$el.hide();
|
||||||
|
if (err.message !== "") {
|
||||||
|
var errorSpan = $("<span>").addClass(errClass);
|
||||||
|
errorSpan.text(err.message);
|
||||||
|
$el.after(errorSpan);
|
||||||
|
}
|
||||||
|
} else if (display === "block") {
|
||||||
|
// If block, add an error just after the el, set visibility:none on the
|
||||||
|
// el, and position the error to be on top of the el.
|
||||||
|
// Mark it with a unique ID and CSS class so we can remove it later.
|
||||||
|
$el.css("visibility", "hidden");
|
||||||
|
if (err.message !== "") {
|
||||||
|
var errorDiv = $("<div>").addClass(errClass).css("position", "absolute")
|
||||||
|
.css("top", el.offsetTop)
|
||||||
|
.css("left", el.offsetLeft)
|
||||||
|
// setting width can push out the page size, forcing otherwise
|
||||||
|
// unnecessary scrollbars to appear and making it impossible for
|
||||||
|
// the element to shrink; so use max-width instead
|
||||||
|
.css("maxWidth", el.offsetWidth)
|
||||||
|
.css("height", el.offsetHeight);
|
||||||
|
errorDiv.text(err.message);
|
||||||
|
$el.after(errorDiv);
|
||||||
|
|
||||||
|
// Really dumb way to keep the size/position of the error in sync with
|
||||||
|
// the parent element as the window is resized or whatever.
|
||||||
|
var intId = setInterval(function() {
|
||||||
|
if (!errorDiv[0].parentElement) {
|
||||||
|
clearInterval(intId);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
errorDiv
|
||||||
|
.css("top", el.offsetTop)
|
||||||
|
.css("left", el.offsetLeft)
|
||||||
|
.css("maxWidth", el.offsetWidth)
|
||||||
|
.css("height", el.offsetHeight);
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
clearError: function(el) {
|
||||||
|
var $el = $(el);
|
||||||
|
var display = $el.data("restore-display-mode");
|
||||||
|
$el.data("restore-display-mode", null);
|
||||||
|
|
||||||
|
if (display === "inline" || display === "inline-block") {
|
||||||
|
if (display)
|
||||||
|
$el.css("display", display);
|
||||||
|
$(el.nextSibling).filter(".htmlwidgets-error").remove();
|
||||||
|
} else if (display === "block"){
|
||||||
|
$el.css("visibility", "inherit");
|
||||||
|
$(el.nextSibling).filter(".htmlwidgets-error").remove();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
sizing: {}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Called by widget bindings to register a new type of widget. The definition
|
||||||
|
// object can contain the following properties:
|
||||||
|
// - name (required) - A string indicating the binding name, which will be
|
||||||
|
// used by default as the CSS classname to look for.
|
||||||
|
// - initialize (optional) - A function(el) that will be called once per
|
||||||
|
// widget element; if a value is returned, it will be passed as the third
|
||||||
|
// value to renderValue.
|
||||||
|
// - renderValue (required) - A function(el, data, initValue) that will be
|
||||||
|
// called with data. Static contexts will cause this to be called once per
|
||||||
|
// element; Shiny apps will cause this to be called multiple times per
|
||||||
|
// element, as the data changes.
|
||||||
|
window.HTMLWidgets.widget = function(definition) {
|
||||||
|
if (!definition.name) {
|
||||||
|
throw new Error("Widget must have a name");
|
||||||
|
}
|
||||||
|
if (!definition.type) {
|
||||||
|
throw new Error("Widget must have a type");
|
||||||
|
}
|
||||||
|
// Currently we only support output widgets
|
||||||
|
if (definition.type !== "output") {
|
||||||
|
throw new Error("Unrecognized widget type '" + definition.type + "'");
|
||||||
|
}
|
||||||
|
// TODO: Verify that .name is a valid CSS classname
|
||||||
|
|
||||||
|
// Support new-style instance-bound definitions. Old-style class-bound
|
||||||
|
// definitions have one widget "object" per widget per type/class of
|
||||||
|
// widget; the renderValue and resize methods on such widget objects
|
||||||
|
// take el and instance arguments, because the widget object can't
|
||||||
|
// store them. New-style instance-bound definitions have one widget
|
||||||
|
// object per widget instance; the definition that's passed in doesn't
|
||||||
|
// provide renderValue or resize methods at all, just the single method
|
||||||
|
// factory(el, width, height)
|
||||||
|
// which returns an object that has renderValue(x) and resize(w, h).
|
||||||
|
// This enables a far more natural programming style for the widget
|
||||||
|
// author, who can store per-instance state using either OO-style
|
||||||
|
// instance fields or functional-style closure variables (I guess this
|
||||||
|
// is in contrast to what can only be called C-style pseudo-OO which is
|
||||||
|
// what we required before).
|
||||||
|
if (definition.factory) {
|
||||||
|
definition = createLegacyDefinitionAdapter(definition);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!definition.renderValue) {
|
||||||
|
throw new Error("Widget must have a renderValue function");
|
||||||
|
}
|
||||||
|
|
||||||
|
// For static rendering (non-Shiny), use a simple widget registration
|
||||||
|
// scheme. We also use this scheme for Shiny apps/documents that also
|
||||||
|
// contain static widgets.
|
||||||
|
window.HTMLWidgets.widgets = window.HTMLWidgets.widgets || [];
|
||||||
|
// Merge defaults into the definition; don't mutate the original definition.
|
||||||
|
var staticBinding = extend({}, defaults, definition);
|
||||||
|
overrideMethod(staticBinding, "find", function(superfunc) {
|
||||||
|
return function(scope) {
|
||||||
|
var results = superfunc(scope);
|
||||||
|
// Filter out Shiny outputs, we only want the static kind
|
||||||
|
return filterByClass(results, "html-widget-output", false);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
window.HTMLWidgets.widgets.push(staticBinding);
|
||||||
|
|
||||||
|
if (shinyMode) {
|
||||||
|
// Shiny is running. Register the definition with an output binding.
|
||||||
|
// The definition itself will not be the output binding, instead
|
||||||
|
// we will make an output binding object that delegates to the
|
||||||
|
// definition. This is because we foolishly used the same method
|
||||||
|
// name (renderValue) for htmlwidgets definition and Shiny bindings
|
||||||
|
// but they actually have quite different semantics (the Shiny
|
||||||
|
// bindings receive data that includes lots of metadata that it
|
||||||
|
// strips off before calling htmlwidgets renderValue). We can't
|
||||||
|
// just ignore the difference because in some widgets it's helpful
|
||||||
|
// to call this.renderValue() from inside of resize(), and if
|
||||||
|
// we're not delegating, then that call will go to the Shiny
|
||||||
|
// version instead of the htmlwidgets version.
|
||||||
|
|
||||||
|
// Merge defaults with definition, without mutating either.
|
||||||
|
var bindingDef = extend({}, defaults, definition);
|
||||||
|
|
||||||
|
// This object will be our actual Shiny binding.
|
||||||
|
var shinyBinding = new Shiny.OutputBinding();
|
||||||
|
|
||||||
|
// With a few exceptions, we'll want to simply use the bindingDef's
|
||||||
|
// version of methods if they are available, otherwise fall back to
|
||||||
|
// Shiny's defaults. NOTE: If Shiny's output bindings gain additional
|
||||||
|
// methods in the future, and we want them to be overrideable by
|
||||||
|
// HTMLWidget binding definitions, then we'll need to add them to this
|
||||||
|
// list.
|
||||||
|
delegateMethod(shinyBinding, bindingDef, "getId");
|
||||||
|
delegateMethod(shinyBinding, bindingDef, "onValueChange");
|
||||||
|
delegateMethod(shinyBinding, bindingDef, "onValueError");
|
||||||
|
delegateMethod(shinyBinding, bindingDef, "renderError");
|
||||||
|
delegateMethod(shinyBinding, bindingDef, "clearError");
|
||||||
|
delegateMethod(shinyBinding, bindingDef, "showProgress");
|
||||||
|
|
||||||
|
// The find, renderValue, and resize are handled differently, because we
|
||||||
|
// want to actually decorate the behavior of the bindingDef methods.
|
||||||
|
|
||||||
|
shinyBinding.find = function(scope) {
|
||||||
|
var results = bindingDef.find(scope);
|
||||||
|
|
||||||
|
// Only return elements that are Shiny outputs, not static ones
|
||||||
|
var dynamicResults = results.filter(".html-widget-output");
|
||||||
|
|
||||||
|
// It's possible that whatever caused Shiny to think there might be
|
||||||
|
// new dynamic outputs, also caused there to be new static outputs.
|
||||||
|
// Since there might be lots of different htmlwidgets bindings, we
|
||||||
|
// schedule execution for later--no need to staticRender multiple
|
||||||
|
// times.
|
||||||
|
if (results.length !== dynamicResults.length)
|
||||||
|
scheduleStaticRender();
|
||||||
|
|
||||||
|
return dynamicResults;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Wrap renderValue to handle initialization, which unfortunately isn't
|
||||||
|
// supported natively by Shiny at the time of this writing.
|
||||||
|
|
||||||
|
shinyBinding.renderValue = function(el, data) {
|
||||||
|
Shiny.renderDependencies(data.deps);
|
||||||
|
// Resolve strings marked as javascript literals to objects
|
||||||
|
if (!(data.evals instanceof Array)) data.evals = [data.evals];
|
||||||
|
for (var i = 0; data.evals && i < data.evals.length; i++) {
|
||||||
|
window.HTMLWidgets.evaluateStringMember(data.x, data.evals[i]);
|
||||||
|
}
|
||||||
|
if (!bindingDef.renderOnNullValue) {
|
||||||
|
if (data.x === null) {
|
||||||
|
el.style.visibility = "hidden";
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
el.style.visibility = "inherit";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!elementData(el, "initialized")) {
|
||||||
|
initSizing(el);
|
||||||
|
|
||||||
|
elementData(el, "initialized", true);
|
||||||
|
if (bindingDef.initialize) {
|
||||||
|
var rect = el.getBoundingClientRect();
|
||||||
|
var result = bindingDef.initialize(el, rect.width, rect.height);
|
||||||
|
elementData(el, "init_result", result);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bindingDef.renderValue(el, data.x, elementData(el, "init_result"));
|
||||||
|
evalAndRun(data.jsHooks.render, elementData(el, "init_result"), [el, data.x]);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Only override resize if bindingDef implements it
|
||||||
|
if (bindingDef.resize) {
|
||||||
|
shinyBinding.resize = function(el, width, height) {
|
||||||
|
// Shiny can call resize before initialize/renderValue have been
|
||||||
|
// called, which doesn't make sense for widgets.
|
||||||
|
if (elementData(el, "initialized")) {
|
||||||
|
bindingDef.resize(el, width, height, elementData(el, "init_result"));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
Shiny.outputBindings.register(shinyBinding, bindingDef.name);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var scheduleStaticRenderTimerId = null;
|
||||||
|
function scheduleStaticRender() {
|
||||||
|
if (!scheduleStaticRenderTimerId) {
|
||||||
|
scheduleStaticRenderTimerId = setTimeout(function() {
|
||||||
|
scheduleStaticRenderTimerId = null;
|
||||||
|
window.HTMLWidgets.staticRender();
|
||||||
|
}, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Render static widgets after the document finishes loading
|
||||||
|
// Statically render all elements that are of this widget's class
|
||||||
|
window.HTMLWidgets.staticRender = function() {
|
||||||
|
var bindings = window.HTMLWidgets.widgets || [];
|
||||||
|
forEach(bindings, function(binding) {
|
||||||
|
var matches = binding.find(document.documentElement);
|
||||||
|
forEach(matches, function(el) {
|
||||||
|
var sizeObj = initSizing(el, binding);
|
||||||
|
|
||||||
|
var getSize = function(el) {
|
||||||
|
if (sizeObj) {
|
||||||
|
return {w: sizeObj.getWidth(), h: sizeObj.getHeight()}
|
||||||
|
} else {
|
||||||
|
var rect = el.getBoundingClientRect();
|
||||||
|
return {w: rect.width, h: rect.height}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (hasClass(el, "html-widget-static-bound"))
|
||||||
|
return;
|
||||||
|
el.className = el.className + " html-widget-static-bound";
|
||||||
|
|
||||||
|
var initResult;
|
||||||
|
if (binding.initialize) {
|
||||||
|
var size = getSize(el);
|
||||||
|
initResult = binding.initialize(el, size.w, size.h);
|
||||||
|
elementData(el, "init_result", initResult);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (binding.resize) {
|
||||||
|
var lastSize = getSize(el);
|
||||||
|
var resizeHandler = function(e) {
|
||||||
|
var size = getSize(el);
|
||||||
|
if (size.w === 0 && size.h === 0)
|
||||||
|
return;
|
||||||
|
if (size.w === lastSize.w && size.h === lastSize.h)
|
||||||
|
return;
|
||||||
|
lastSize = size;
|
||||||
|
binding.resize(el, size.w, size.h, initResult);
|
||||||
|
};
|
||||||
|
|
||||||
|
on(window, "resize", resizeHandler);
|
||||||
|
|
||||||
|
// This is needed for cases where we're running in a Shiny
|
||||||
|
// app, but the widget itself is not a Shiny output, but
|
||||||
|
// rather a simple static widget. One example of this is
|
||||||
|
// an rmarkdown document that has runtime:shiny and widget
|
||||||
|
// that isn't in a render function. Shiny only knows to
|
||||||
|
// call resize handlers for Shiny outputs, not for static
|
||||||
|
// widgets, so we do it ourselves.
|
||||||
|
if (window.jQuery) {
|
||||||
|
window.jQuery(document).on(
|
||||||
|
"shown.htmlwidgets shown.bs.tab.htmlwidgets shown.bs.collapse.htmlwidgets",
|
||||||
|
resizeHandler
|
||||||
|
);
|
||||||
|
window.jQuery(document).on(
|
||||||
|
"hidden.htmlwidgets hidden.bs.tab.htmlwidgets hidden.bs.collapse.htmlwidgets",
|
||||||
|
resizeHandler
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// This is needed for the specific case of ioslides, which
|
||||||
|
// flips slides between display:none and display:block.
|
||||||
|
// Ideally we would not have to have ioslide-specific code
|
||||||
|
// here, but rather have ioslides raise a generic event,
|
||||||
|
// but the rmarkdown package just went to CRAN so the
|
||||||
|
// window to getting that fixed may be long.
|
||||||
|
if (window.addEventListener) {
|
||||||
|
// It's OK to limit this to window.addEventListener
|
||||||
|
// browsers because ioslides itself only supports
|
||||||
|
// such browsers.
|
||||||
|
on(document, "slideenter", resizeHandler);
|
||||||
|
on(document, "slideleave", resizeHandler);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var scriptData = document.querySelector("script[data-for='" + el.id + "'][type='application/json']");
|
||||||
|
if (scriptData) {
|
||||||
|
var data = JSON.parse(scriptData.textContent || scriptData.text);
|
||||||
|
// Resolve strings marked as javascript literals to objects
|
||||||
|
if (!(data.evals instanceof Array)) data.evals = [data.evals];
|
||||||
|
for (var k = 0; data.evals && k < data.evals.length; k++) {
|
||||||
|
window.HTMLWidgets.evaluateStringMember(data.x, data.evals[k]);
|
||||||
|
}
|
||||||
|
binding.renderValue(el, data.x, initResult);
|
||||||
|
evalAndRun(data.jsHooks.render, initResult, [el, data.x]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
invokePostRenderHandlers();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function has_jQuery3() {
|
||||||
|
if (!window.jQuery) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var $version = window.jQuery.fn.jquery;
|
||||||
|
var $major_version = parseInt($version.split(".")[0]);
|
||||||
|
return $major_version >= 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
/ Shiny 1.4 bumped jQuery from 1.x to 3.x which means jQuery's
|
||||||
|
/ on-ready handler (i.e., $(fn)) is now asyncronous (i.e., it now
|
||||||
|
/ really means $(setTimeout(fn)).
|
||||||
|
/ https://jquery.com/upgrade-guide/3.0/#breaking-change-document-ready-handlers-are-now-asynchronous
|
||||||
|
/
|
||||||
|
/ Since Shiny uses $() to schedule initShiny, shiny>=1.4 calls initShiny
|
||||||
|
/ one tick later than it did before, which means staticRender() is
|
||||||
|
/ called renderValue() earlier than (advanced) widget authors might be expecting.
|
||||||
|
/ https://github.com/rstudio/shiny/issues/2630
|
||||||
|
/
|
||||||
|
/ For a concrete example, leaflet has some methods (e.g., updateBounds)
|
||||||
|
/ which reference Shiny methods registered in initShiny (e.g., setInputValue).
|
||||||
|
/ Since leaflet is privy to this life-cycle, it knows to use setTimeout() to
|
||||||
|
/ delay execution of those methods (until Shiny methods are ready)
|
||||||
|
/ https://github.com/rstudio/leaflet/blob/18ec981/javascript/src/index.js#L266-L268
|
||||||
|
/
|
||||||
|
/ Ideally widget authors wouldn't need to use this setTimeout() hack that
|
||||||
|
/ leaflet uses to call Shiny methods on a staticRender(). In the long run,
|
||||||
|
/ the logic initShiny should be broken up so that method registration happens
|
||||||
|
/ right away, but binding happens later.
|
||||||
|
*/
|
||||||
|
function maybeStaticRenderLater() {
|
||||||
|
if (shinyMode && has_jQuery3()) {
|
||||||
|
window.jQuery(window.HTMLWidgets.staticRender);
|
||||||
|
} else {
|
||||||
|
window.HTMLWidgets.staticRender();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.addEventListener) {
|
||||||
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
document.removeEventListener("DOMContentLoaded", arguments.callee, false);
|
||||||
|
maybeStaticRenderLater();
|
||||||
|
}, false);
|
||||||
|
} else if (document.attachEvent) {
|
||||||
|
document.attachEvent("onreadystatechange", function() {
|
||||||
|
if (document.readyState === "complete") {
|
||||||
|
document.detachEvent("onreadystatechange", arguments.callee);
|
||||||
|
maybeStaticRenderLater();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
window.HTMLWidgets.getAttachmentUrl = function(depname, key) {
|
||||||
|
// If no key, default to the first item
|
||||||
|
if (typeof(key) === "undefined")
|
||||||
|
key = 1;
|
||||||
|
|
||||||
|
var link = document.getElementById(depname + "-" + key + "-attachment");
|
||||||
|
if (!link) {
|
||||||
|
throw new Error("Attachment " + depname + "/" + key + " not found in document");
|
||||||
|
}
|
||||||
|
return link.getAttribute("href");
|
||||||
|
};
|
||||||
|
|
||||||
|
window.HTMLWidgets.dataframeToD3 = function(df) {
|
||||||
|
var names = [];
|
||||||
|
var length;
|
||||||
|
for (var name in df) {
|
||||||
|
if (df.hasOwnProperty(name))
|
||||||
|
names.push(name);
|
||||||
|
if (typeof(df[name]) !== "object" || typeof(df[name].length) === "undefined") {
|
||||||
|
throw new Error("All fields must be arrays");
|
||||||
|
} else if (typeof(length) !== "undefined" && length !== df[name].length) {
|
||||||
|
throw new Error("All fields must be arrays of the same length");
|
||||||
|
}
|
||||||
|
length = df[name].length;
|
||||||
|
}
|
||||||
|
var results = [];
|
||||||
|
var item;
|
||||||
|
for (var row = 0; row < length; row++) {
|
||||||
|
item = {};
|
||||||
|
for (var col = 0; col < names.length; col++) {
|
||||||
|
item[names[col]] = df[names[col]][row];
|
||||||
|
}
|
||||||
|
results.push(item);
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
};
|
||||||
|
|
||||||
|
window.HTMLWidgets.transposeArray2D = function(array) {
|
||||||
|
if (array.length === 0) return array;
|
||||||
|
var newArray = array[0].map(function(col, i) {
|
||||||
|
return array.map(function(row) {
|
||||||
|
return row[i]
|
||||||
|
})
|
||||||
|
});
|
||||||
|
return newArray;
|
||||||
|
};
|
||||||
|
// Split value at splitChar, but allow splitChar to be escaped
|
||||||
|
// using escapeChar. Any other characters escaped by escapeChar
|
||||||
|
// will be included as usual (including escapeChar itself).
|
||||||
|
function splitWithEscape(value, splitChar, escapeChar) {
|
||||||
|
var results = [];
|
||||||
|
var escapeMode = false;
|
||||||
|
var currentResult = "";
|
||||||
|
for (var pos = 0; pos < value.length; pos++) {
|
||||||
|
if (!escapeMode) {
|
||||||
|
if (value[pos] === splitChar) {
|
||||||
|
results.push(currentResult);
|
||||||
|
currentResult = "";
|
||||||
|
} else if (value[pos] === escapeChar) {
|
||||||
|
escapeMode = true;
|
||||||
|
} else {
|
||||||
|
currentResult += value[pos];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
currentResult += value[pos];
|
||||||
|
escapeMode = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (currentResult !== "") {
|
||||||
|
results.push(currentResult);
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
// Function authored by Yihui/JJ Allaire
|
||||||
|
window.HTMLWidgets.evaluateStringMember = function(o, member) {
|
||||||
|
var parts = splitWithEscape(member, '.', '\\');
|
||||||
|
for (var i = 0, l = parts.length; i < l; i++) {
|
||||||
|
var part = parts[i];
|
||||||
|
// part may be a character or 'numeric' member name
|
||||||
|
if (o !== null && typeof o === "object" && part in o) {
|
||||||
|
if (i == (l - 1)) { // if we are at the end of the line then evalulate
|
||||||
|
if (typeof o[part] === "string")
|
||||||
|
o[part] = tryEval(o[part]);
|
||||||
|
} else { // otherwise continue to next embedded object
|
||||||
|
o = o[part];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Retrieve the HTMLWidget instance (i.e. the return value of an
|
||||||
|
// HTMLWidget binding's initialize() or factory() function)
|
||||||
|
// associated with an element, or null if none.
|
||||||
|
window.HTMLWidgets.getInstance = function(el) {
|
||||||
|
return elementData(el, "init_result");
|
||||||
|
};
|
||||||
|
|
||||||
|
// Finds the first element in the scope that matches the selector,
|
||||||
|
// and returns the HTMLWidget instance (i.e. the return value of
|
||||||
|
// an HTMLWidget binding's initialize() or factory() function)
|
||||||
|
// associated with that element, if any. If no element matches the
|
||||||
|
// selector, or the first matching element has no HTMLWidget
|
||||||
|
// instance associated with it, then null is returned.
|
||||||
|
//
|
||||||
|
// The scope argument is optional, and defaults to window.document.
|
||||||
|
window.HTMLWidgets.find = function(scope, selector) {
|
||||||
|
if (arguments.length == 1) {
|
||||||
|
selector = scope;
|
||||||
|
scope = document;
|
||||||
|
}
|
||||||
|
|
||||||
|
var el = scope.querySelector(selector);
|
||||||
|
if (el === null) {
|
||||||
|
return null;
|
||||||
|
} else {
|
||||||
|
return window.HTMLWidgets.getInstance(el);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Finds all elements in the scope that match the selector, and
|
||||||
|
// returns the HTMLWidget instances (i.e. the return values of
|
||||||
|
// an HTMLWidget binding's initialize() or factory() function)
|
||||||
|
// associated with the elements, in an array. If elements that
|
||||||
|
// match the selector don't have an associated HTMLWidget
|
||||||
|
// instance, the returned array will contain nulls.
|
||||||
|
//
|
||||||
|
// The scope argument is optional, and defaults to window.document.
|
||||||
|
window.HTMLWidgets.findAll = function(scope, selector) {
|
||||||
|
if (arguments.length == 1) {
|
||||||
|
selector = scope;
|
||||||
|
scope = document;
|
||||||
|
}
|
||||||
|
|
||||||
|
var nodes = scope.querySelectorAll(selector);
|
||||||
|
var results = [];
|
||||||
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
|
results.push(window.HTMLWidgets.getInstance(nodes[i]));
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
};
|
||||||
|
|
||||||
|
var postRenderHandlers = [];
|
||||||
|
function invokePostRenderHandlers() {
|
||||||
|
while (postRenderHandlers.length) {
|
||||||
|
var handler = postRenderHandlers.shift();
|
||||||
|
if (handler) {
|
||||||
|
handler();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Register the given callback function to be invoked after the
|
||||||
|
// next time static widgets are rendered.
|
||||||
|
window.HTMLWidgets.addPostRenderHandler = function(callback) {
|
||||||
|
postRenderHandlers.push(callback);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Takes a new-style instance-bound definition, and returns an
|
||||||
|
// old-style class-bound definition. This saves us from having
|
||||||
|
// to rewrite all the logic in this file to accomodate both
|
||||||
|
// types of definitions.
|
||||||
|
function createLegacyDefinitionAdapter(defn) {
|
||||||
|
var result = {
|
||||||
|
name: defn.name,
|
||||||
|
type: defn.type,
|
||||||
|
initialize: function(el, width, height) {
|
||||||
|
return defn.factory(el, width, height);
|
||||||
|
},
|
||||||
|
renderValue: function(el, x, instance) {
|
||||||
|
return instance.renderValue(x);
|
||||||
|
},
|
||||||
|
resize: function(el, width, height, instance) {
|
||||||
|
return instance.resize(width, height);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (defn.find)
|
||||||
|
result.find = defn.find;
|
||||||
|
if (defn.renderError)
|
||||||
|
result.renderError = defn.renderError;
|
||||||
|
if (defn.clearError)
|
||||||
|
result.clearError = defn.clearError;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
})();
|
77
reference/m_datafileUI.html
Normal file
77
reference/m_datafileUI.html
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
<!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>Shiny UI module to load a data file — m_datafileUI • freesearcheR</title><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/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><meta property="og:title" content="Shiny UI module to load a data file — m_datafileUI"><meta name="description" content="Shiny UI module to load a data file"><meta property="og:description" content="Shiny UI module to load a data file"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Shiny UI module to load a data file</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/file-import-module.R" class="external-link"><code>R/file-import-module.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>m_datafileUI.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Shiny UI module to load a data file</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">m_datafileUI</span><span class="op">(</span><span class="va">id</span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-id">id<a class="anchor" aria-label="anchor" href="#arg-id"></a></dt>
|
||||||
|
<dd><p>id</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||||
|
<p>shiny UI</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
96
reference/overview_vars.html
Normal file
96
reference/overview_vars.html
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
<!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>Create a data overview data.frame ready for sparklines — overview_vars • freesearcheR</title><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/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><meta property="og:title" content="Create a data overview data.frame ready for sparklines — overview_vars"><meta name="description" content="Create a data overview data.frame ready for sparklines"><meta property="og:description" content="Create a data overview data.frame ready for sparklines"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Create a data overview data.frame ready for sparklines</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/data-summary.R" class="external-link"><code>R/data-summary.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>overview_vars.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Create a data overview data.frame ready for sparklines</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">overview_vars</span><span class="op">(</span><span class="va">data</span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
|
||||||
|
<dd><p>data</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||||
|
<p>data.frame</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">mtcars</span> <span class="op">|></span> <span class="fu">overview_vars</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 11 × 6</span></span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> class name n_missing p_complete n_unique vals </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><named list></span></span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> numeric mpg 0 1 25 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> numeric cyl 0 1 3 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> numeric disp 0 1 27 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> numeric hp 0 1 22 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> numeric drat 0 1 22 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> numeric wt 0 1 29 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> numeric qsec 0 1 30 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> numeric vs 0 1 2 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> numeric am 0 1 2 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> numeric gear 0 1 3 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">11</span> numeric carb 0 1 6 <span style="color: #949494;"><dbl [32]></span> </span>
|
||||||
|
</code></pre></div>
|
||||||
|
</div>
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
95
reference/remove_na_attr.html
Normal file
95
reference/remove_na_attr.html
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
<!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>Remove NA labels — remove_na_attr • freesearcheR</title><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/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><meta property="og:title" content="Remove NA labels — remove_na_attr"><meta name="description" content="Remove NA labels"><meta property="og:description" content="Remove NA labels"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Remove NA labels</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/helpers.R" class="external-link"><code>R/helpers.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>remove_na_attr.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Remove NA labels</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">remove_na_attr</span><span class="op">(</span><span class="va">data</span>, attr <span class="op">=</span> <span class="st">"label"</span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
|
||||||
|
<dd><p>data</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||||
|
<p>data.frame</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">ds</span> <span class="op"><-</span> <span class="va">mtcars</span> <span class="op">|></span> <span class="fu"><a href="https://rdrr.io/r/base/lapply.html" class="external-link">lapply</a></span><span class="op">(</span>\<span class="op">(</span><span class="va">.x</span><span class="op">)</span> <span class="fu">REDCapCAST</span><span class="fu">::</span><span class="fu"><a href="https://agdamsbo.github.io/REDCapCAST/reference/set_attr.html" class="external-link">set_attr</a></span><span class="op">(</span><span class="va">.x</span>,label<span class="op">=</span><span class="cn">NA</span>,attr <span class="op">=</span> <span class="st">"label"</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||||
|
<span class="r-in"><span><span class="va">ds</span> <span class="op">|></span> <span class="fu">remove_na_attr</span><span class="op">(</span><span class="op">)</span> <span class="op">|></span> <span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="op">)</span></span></span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> tibble [32 × 11] (S3: tbl_df/tbl/data.frame)</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ mpg : num [1:32] 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ cyl : num [1:32] 6 6 4 6 8 6 8 4 4 6 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ disp: num [1:32] 160 160 108 258 360 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ hp : num [1:32] 110 110 93 110 175 105 245 62 95 123 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ drat: num [1:32] 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ wt : num [1:32] 2.62 2.88 2.32 3.21 3.44 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ qsec: num [1:32] 16.5 17 18.6 19.4 17 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ vs : num [1:32] 0 0 1 1 0 1 0 1 1 1 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ am : num [1:32] 1 1 1 0 0 0 0 0 0 0 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ gear: num [1:32] 4 4 4 3 3 3 3 4 4 4 ...</span>
|
||||||
|
<span class="r-out co"><span class="r-pr">#></span> $ carb: num [1:32] 4 4 1 1 2 1 4 2 2 4 ...</span>
|
||||||
|
</code></pre></div>
|
||||||
|
</div>
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
106
reference/update-variables.html
Normal file
106
reference/update-variables.html
Normal file
|
@ -0,0 +1,106 @@
|
||||||
|
<!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>Select, rename and convert variables — update-variables • freesearcheR</title><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/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><meta property="og:title" content="Select, rename and convert variables — update-variables"><meta name="description" content="Select, rename and convert variables"><meta property="og:description" content="Select, rename and convert variables"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Select, rename and convert variables</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/update-variables-ext.R" class="external-link"><code>R/update-variables-ext.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>update-variables.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Select, rename and convert variables</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">update_variables_ui</span><span class="op">(</span><span class="va">id</span>, title <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span>
|
||||||
|
<span></span>
|
||||||
|
<span><span class="fu">update_variables_server</span><span class="op">(</span></span>
|
||||||
|
<span> <span class="va">id</span>,</span>
|
||||||
|
<span> <span class="va">data</span>,</span>
|
||||||
|
<span> height <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||||
|
<span> return_data_on_init <span class="op">=</span> <span class="cn">FALSE</span>,</span>
|
||||||
|
<span> try_silent <span class="op">=</span> <span class="cn">FALSE</span></span>
|
||||||
|
<span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-id">id<a class="anchor" aria-label="anchor" href="#arg-id"></a></dt>
|
||||||
|
<dd><p>Module's ID</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-title">title<a class="anchor" aria-label="anchor" href="#arg-title"></a></dt>
|
||||||
|
<dd><p>Module's title, if <code>TRUE</code> use the default title,
|
||||||
|
use <code>NULL</code> for no title or a <code>shiny.tag</code> for a custom one.</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
|
||||||
|
<dd><p>a <code>data.frame</code> or a <code>reactive</code> function returning a <code>data.frame</code>.</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-height">height<a class="anchor" aria-label="anchor" href="#arg-height"></a></dt>
|
||||||
|
<dd><p>Height for the table.</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-return-data-on-init">return_data_on_init<a class="anchor" aria-label="anchor" href="#arg-return-data-on-init"></a></dt>
|
||||||
|
<dd><p>Return initial data when module is called.</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-try-silent">try_silent<a class="anchor" aria-label="anchor" href="#arg-try-silent"></a></dt>
|
||||||
|
<dd><p>logical: should the report of error messages be suppressed?</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
||||||
|
<p>A <code><a href="https://rdrr.io/pkg/shiny/man/reactive.html" class="external-link">shiny::reactive()</a></code> function returning the updated data.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
99
reference/update_variables_datagrid.html
Normal file
99
reference/update_variables_datagrid.html
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
<!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>Modified from the datamods pacakge — update_variables_datagrid • freesearcheR</title><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/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><meta property="og:title" content="Modified from the datamods pacakge — update_variables_datagrid"><meta name="description" content="Modified from the datamods pacakge"><meta property="og:description" content="Modified from the datamods pacakge"></head><body>
|
||||||
|
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
||||||
|
|
||||||
|
|
||||||
|
<nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">
|
||||||
|
|
||||||
|
<a class="navbar-brand me-2" href="../index.html">freesearcheR</a>
|
||||||
|
|
||||||
|
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">25.1.1</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">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div id="navbar" class="collapse navbar-collapse ms-3">
|
||||||
|
<ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
|
||||||
|
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
|
||||||
|
</ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
|
||||||
|
<input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
|
||||||
|
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/agdamsbo/freesearcheR/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
|
||||||
|
</ul></div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav><div class="container template-reference-topic">
|
||||||
|
<div class="row">
|
||||||
|
<main id="main" class="col-md-9"><div class="page-header">
|
||||||
|
|
||||||
|
<h1>Modified from the datamods pacakge</h1>
|
||||||
|
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/freesearcheR/blob/main/R/update-variables-ext.R" class="external-link"><code>R/update-variables-ext.R</code></a></small>
|
||||||
|
<div class="d-none name"><code>update_variables_datagrid.Rd</code></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="ref-description section level2">
|
||||||
|
<p>Modified from the datamods pacakge</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">update_variables_datagrid</span><span class="op">(</span></span>
|
||||||
|
<span> <span class="va">data</span>,</span>
|
||||||
|
<span> height <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||||
|
<span> selectionId <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
||||||
|
<span> buttonId <span class="op">=</span> <span class="cn">NULL</span></span>
|
||||||
|
<span><span class="op">)</span></span></code></pre></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>
|
||||||
|
|
||||||
|
|
||||||
|
<dl><dt id="arg-data">data<a class="anchor" aria-label="anchor" href="#arg-data"></a></dt>
|
||||||
|
<dd><p>data</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-height">height<a class="anchor" aria-label="anchor" href="#arg-height"></a></dt>
|
||||||
|
<dd><p>height</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-selectionid">selectionId<a class="anchor" aria-label="anchor" href="#arg-selectionid"></a></dt>
|
||||||
|
<dd><p>selectionId</p></dd>
|
||||||
|
|
||||||
|
|
||||||
|
<dt id="arg-buttonid">buttonId<a class="anchor" aria-label="anchor" href="#arg-buttonid"></a></dt>
|
||||||
|
<dd><p>buttonId</p></dd>
|
||||||
|
|
||||||
|
</dl></div>
|
||||||
|
|
||||||
|
<div class="section level2">
|
||||||
|
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||||
|
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">mtcars</span> <span class="op">|></span></span></span>
|
||||||
|
<span class="r-in"><span> <span class="fu">summary_vars</span><span class="op">(</span><span class="op">)</span> <span class="op">|></span></span></span>
|
||||||
|
<span class="r-in"><span> <span class="fu">update_variables_datagrid</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||||
|
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in update_variables_datagrid(summary_vars(mtcars)):</span> could not find function "update_variables_datagrid"</span>
|
||||||
|
<span class="r-in"><span></span></span>
|
||||||
|
</code></pre></div>
|
||||||
|
</div>
|
||||||
|
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||||
|
</nav></aside></div>
|
||||||
|
|
||||||
|
|
||||||
|
<footer><div class="pkgdown-footer-left">
|
||||||
|
<p>Developed by Andreas Gammelgaard Damsbo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pkgdown-footer-right">
|
||||||
|
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.1.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</footer></div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</body></html>
|
||||||
|
|
8
reference/update_variables_server.html
Normal file
8
reference/update_variables_server.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0;URL=https://agdamsbo.github.io/freesearcheR/reference/update-variables.html" />
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<link rel="canonical" href="https://agdamsbo.github.io/freesearcheR/reference/update-variables.html">
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
|
8
reference/update_variables_ui.html
Normal file
8
reference/update_variables_ui.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0;URL=https://agdamsbo.github.io/freesearcheR/reference/update-variables.html" />
|
||||||
|
<meta name="robots" content="noindex">
|
||||||
|
<link rel="canonical" href="https://agdamsbo.github.io/freesearcheR/reference/update-variables.html">
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
|
File diff suppressed because one or more lines are too long
10
sitemap.xml
10
sitemap.xml
|
@ -5,11 +5,15 @@
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/authors.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/authors.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/index.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/index.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/news/index.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/news/index.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/add_class_icon.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/add_sparkline.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/argsstring2list.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/argsstring2list.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/baseline_table.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/baseline_table.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/create_overview_datagrid.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/custom_theme.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/custom_theme.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/cut-variable.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/cut-variable.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/cut.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/cut.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/data-summary.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/default_format_arguments.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/default_format_arguments.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/default_parsing.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/default_parsing.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/factorize.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/factorize.html</loc></url>
|
||||||
|
@ -19,16 +23,22 @@
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/index.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/index.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/index_embed.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/index_embed.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/is_any_class.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/is_any_class.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/is_consecutive.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/is_datetime.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/is_datetime.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/m_datafileUI.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/modify_qmd.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/modify_qmd.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/overview_vars.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/read_input.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/read_input.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/redcap_read_shiny_module.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/redcap_read_shiny_module.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/regression_model.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/regression_model.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/regression_model_uv.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/regression_model_uv.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/regression_table.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/regression_table.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/remove_na_attr.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/shiny_freesearcheR.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/shiny_freesearcheR.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/specify_qmd_format.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/specify_qmd_format.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/tbl_merge.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/tbl_merge.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/update-variables.html</loc></url>
|
||||||
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/update_variables_datagrid.html</loc></url>
|
||||||
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/write_quarto.html</loc></url>
|
<url><loc>https://agdamsbo.github.io/freesearcheR/reference/write_quarto.html</loc></url>
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue