now using pkgdown action to render and deploy
48
.github/workflows/pkgdown.yaml
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
|
||||||
|
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main, master]
|
||||||
|
pull_request:
|
||||||
|
branches: [main, master]
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
name: pkgdown
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pkgdown:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
# Only restrict concurrency for non-PR jobs
|
||||||
|
concurrency:
|
||||||
|
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
|
||||||
|
env:
|
||||||
|
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: r-lib/actions/setup-pandoc@v2
|
||||||
|
|
||||||
|
- uses: r-lib/actions/setup-r@v2
|
||||||
|
with:
|
||||||
|
use-public-rspm: true
|
||||||
|
|
||||||
|
- uses: r-lib/actions/setup-r-dependencies@v2
|
||||||
|
with:
|
||||||
|
extra-packages: any::pkgdown, local::.
|
||||||
|
needs: website
|
||||||
|
|
||||||
|
- name: Build site
|
||||||
|
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
|
||||||
|
shell: Rscript {0}
|
||||||
|
|
||||||
|
- name: Deploy to GitHub pages 🚀
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: JamesIves/github-pages-deploy-action@v4.4.1
|
||||||
|
with:
|
||||||
|
clean: false
|
||||||
|
branch: gh-pages
|
||||||
|
folder: docs
|
1
.gitignore
vendored
@ -5,3 +5,4 @@ test-data/
|
|||||||
inst/doc
|
inst/doc
|
||||||
logo.R
|
logo.R
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
docs
|
||||||
|
@ -37,7 +37,7 @@ License: GPL (>= 3)
|
|||||||
Encoding: UTF-8
|
Encoding: UTF-8
|
||||||
LazyData: true
|
LazyData: true
|
||||||
RoxygenNote: 7.2.3
|
RoxygenNote: 7.2.3
|
||||||
URL: https://github.com/agdamsbo/REDCapCAST
|
URL: https://github.com/agdamsbo/REDCapCAST, https://agdamsbo.github.io/REDCapCAST/
|
||||||
BugReports: https://github.com/agdamsbo/REDCapCAST/issues
|
BugReports: https://github.com/agdamsbo/REDCapCAST/issues
|
||||||
Imports:
|
Imports:
|
||||||
dplyr,
|
dplyr,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
url: ~
|
url: https://agdamsbo.github.io/REDCapCAST/
|
||||||
template:
|
template:
|
||||||
bootstrap: 5
|
bootstrap: 5
|
||||||
|
|
||||||
|
103
docs/404.html
@ -1,103 +0,0 @@
|
|||||||
<!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>Page not found (404) • REDCapCAST</title>
|
|
||||||
<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
|
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="apple-touch-icon.png">
|
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="120x120" href="apple-touch-icon-120x120.png">
|
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="76x76" href="apple-touch-icon-76x76.png">
|
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="60x60" href="apple-touch-icon-60x60.png">
|
|
||||||
<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.2.2/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<script src="deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous">
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
|
|
||||||
<!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="pkgdown.js"></script><meta property="og:title" content="Page not found (404)">
|
|
||||||
<meta property="og:image" content="/logo.png">
|
|
||||||
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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="nav-item">
|
|
||||||
<a class="nav-link" href="reference/index.html">Reference</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="search.json" id="search-input" placeholder="Search for" autocomplete="off">
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab fa fab fa-github fa-lg"></span>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav><div class="container template-title-body">
|
|
||||||
<div class="row">
|
|
||||||
<main id="main" class="col-md-9"><div class="page-header">
|
|
||||||
<img src="logo.png" class="logo" alt=""><h1>Page not found (404)</h1>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
Content not found. Please use links in the navbar.
|
|
||||||
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p>
|
|
||||||
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p>
|
|
||||||
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,269 +0,0 @@
|
|||||||
<!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>GNU General Public License • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="pkgdown.js"></script><meta property="og:title" content="GNU General Public License"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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="nav-item">
|
|
||||||
<a class="nav-link" href="reference/index.html">Reference</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab fa fab fa-github fa-lg"></span>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul></div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav><div class="container template-title-body">
|
|
||||||
<div class="row">
|
|
||||||
<main id="main" class="col-md-9"><div class="page-header">
|
|
||||||
<img src="logo.png" class="logo" alt=""><h1>GNU General Public License</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/LICENSE.md" class="external-link"><code>LICENSE.md</code></a></small>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="gnu-general-public-license" class="section level1">
|
|
||||||
|
|
||||||
<p><em>Version 3, 29 June 2007</em><br><em>Copyright © 2007 Free Software Foundation, Inc. <<a href="http://fsf.org/" class="external-link uri">http://fsf.org/</a>></em></p>
|
|
||||||
<p>Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.</p>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="preamble">Preamble<a class="anchor" aria-label="anchor" href="#preamble"></a></h2>
|
|
||||||
<p>The GNU General Public License is a free, copyleft license for software and other kinds of works.</p>
|
|
||||||
<p>The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program–to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.</p>
|
|
||||||
<p>When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.</p>
|
|
||||||
<p>To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.</p>
|
|
||||||
<p>For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.</p>
|
|
||||||
<p>Developers that use the GNU GPL protect your rights with two steps: <strong>(1)</strong> assert copyright on the software, and <strong>(2)</strong> offer you this License giving you legal permission to copy, distribute and/or modify it.</p>
|
|
||||||
<p>For the developers’ and authors’ protection, the GPL clearly explains that there is no warranty for this free software. For both users’ and authors’ sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.</p>
|
|
||||||
<p>Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users’ freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.</p>
|
|
||||||
<p>Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.</p>
|
|
||||||
<p>The precise terms and conditions for copying, distribution and modification follow.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="terms-and-conditions">TERMS AND CONDITIONS<a class="anchor" aria-label="anchor" href="#terms-and-conditions"></a></h2>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_0-definitions">0. Definitions<a class="anchor" aria-label="anchor" href="#id_0-definitions"></a></h3>
|
|
||||||
<p>“This License” refers to version 3 of the GNU General Public License.</p>
|
|
||||||
<p>“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.</p>
|
|
||||||
<p>“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.</p>
|
|
||||||
<p>To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.</p>
|
|
||||||
<p>A “covered work” means either the unmodified Program or a work based on the Program.</p>
|
|
||||||
<p>To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.</p>
|
|
||||||
<p>To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.</p>
|
|
||||||
<p>An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that <strong>(1)</strong> displays an appropriate copyright notice, and <strong>(2)</strong> tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_1-source-code">1. Source Code<a class="anchor" aria-label="anchor" href="#id_1-source-code"></a></h3>
|
|
||||||
<p>The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.</p>
|
|
||||||
<p>A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.</p>
|
|
||||||
<p>The “System Libraries” of an executable work include anything, other than the work as a whole, that <strong>(a)</strong> is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and <strong>(b)</strong> serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.</p>
|
|
||||||
<p>The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work’s System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.</p>
|
|
||||||
<p>The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.</p>
|
|
||||||
<p>The Corresponding Source for a work in source code form is that same work.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_2-basic-permissions">2. Basic Permissions<a class="anchor" aria-label="anchor" href="#id_2-basic-permissions"></a></h3>
|
|
||||||
<p>All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.</p>
|
|
||||||
<p>You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.</p>
|
|
||||||
<p>Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_3-protecting-users-legal-rights-from-anti-circumvention-law">3. Protecting Users’ Legal Rights From Anti-Circumvention Law<a class="anchor" aria-label="anchor" href="#id_3-protecting-users-legal-rights-from-anti-circumvention-law"></a></h3>
|
|
||||||
<p>No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.</p>
|
|
||||||
<p>When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work’s users, your or third parties’ legal rights to forbid circumvention of technological measures.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_4-conveying-verbatim-copies">4. Conveying Verbatim Copies<a class="anchor" aria-label="anchor" href="#id_4-conveying-verbatim-copies"></a></h3>
|
|
||||||
<p>You may convey verbatim copies of the Program’s source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.</p>
|
|
||||||
<p>You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_5-conveying-modified-source-versions">5. Conveying Modified Source Versions<a class="anchor" aria-label="anchor" href="#id_5-conveying-modified-source-versions"></a></h3>
|
|
||||||
<p>You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:</p>
|
|
||||||
<ul><li>
|
|
||||||
<strong>a)</strong> The work must carry prominent notices stating that you modified it, and giving a relevant date.</li>
|
|
||||||
<li>
|
|
||||||
<strong>b)</strong> The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.</li>
|
|
||||||
<li>
|
|
||||||
<strong>c)</strong> You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.</li>
|
|
||||||
<li>
|
|
||||||
<strong>d)</strong> If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.</li>
|
|
||||||
</ul><p>A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation’s users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_6-conveying-non-source-forms">6. Conveying Non-Source Forms<a class="anchor" aria-label="anchor" href="#id_6-conveying-non-source-forms"></a></h3>
|
|
||||||
<p>You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:</p>
|
|
||||||
<ul><li>
|
|
||||||
<strong>a)</strong> Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.</li>
|
|
||||||
<li>
|
|
||||||
<strong>b)</strong> Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either <strong>(1)</strong> a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or <strong>(2)</strong> access to copy the Corresponding Source from a network server at no charge.</li>
|
|
||||||
<li>
|
|
||||||
<strong>c)</strong> Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.</li>
|
|
||||||
<li>
|
|
||||||
<strong>d)</strong> Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.</li>
|
|
||||||
<li>
|
|
||||||
<strong>e)</strong> Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.</li>
|
|
||||||
</ul><p>A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.</p>
|
|
||||||
<p>A “User Product” is either <strong>(1)</strong> a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or <strong>(2)</strong> anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.</p>
|
|
||||||
<p>“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.</p>
|
|
||||||
<p>If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).</p>
|
|
||||||
<p>The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.</p>
|
|
||||||
<p>Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_7-additional-terms">7. Additional Terms<a class="anchor" aria-label="anchor" href="#id_7-additional-terms"></a></h3>
|
|
||||||
<p>“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.</p>
|
|
||||||
<p>When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.</p>
|
|
||||||
<p>Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:</p>
|
|
||||||
<ul><li>
|
|
||||||
<strong>a)</strong> Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or</li>
|
|
||||||
<li>
|
|
||||||
<strong>b)</strong> Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or</li>
|
|
||||||
<li>
|
|
||||||
<strong>c)</strong> Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or</li>
|
|
||||||
<li>
|
|
||||||
<strong>d)</strong> Limiting the use for publicity purposes of names of licensors or authors of the material; or</li>
|
|
||||||
<li>
|
|
||||||
<strong>e)</strong> Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or</li>
|
|
||||||
<li>
|
|
||||||
<strong>f)</strong> Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.</li>
|
|
||||||
</ul><p>All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.</p>
|
|
||||||
<p>If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.</p>
|
|
||||||
<p>Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_8-termination">8. Termination<a class="anchor" aria-label="anchor" href="#id_8-termination"></a></h3>
|
|
||||||
<p>You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).</p>
|
|
||||||
<p>However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated <strong>(a)</strong> provisionally, unless and until the copyright holder explicitly and finally terminates your license, and <strong>(b)</strong> permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.</p>
|
|
||||||
<p>Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.</p>
|
|
||||||
<p>Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_9-acceptance-not-required-for-having-copies">9. Acceptance Not Required for Having Copies<a class="anchor" aria-label="anchor" href="#id_9-acceptance-not-required-for-having-copies"></a></h3>
|
|
||||||
<p>You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_10-automatic-licensing-of-downstream-recipients">10. Automatic Licensing of Downstream Recipients<a class="anchor" aria-label="anchor" href="#id_10-automatic-licensing-of-downstream-recipients"></a></h3>
|
|
||||||
<p>Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.</p>
|
|
||||||
<p>An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party’s predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.</p>
|
|
||||||
<p>You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_11-patents">11. Patents<a class="anchor" aria-label="anchor" href="#id_11-patents"></a></h3>
|
|
||||||
<p>A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor’s “contributor version”.</p>
|
|
||||||
<p>A contributor’s “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.</p>
|
|
||||||
<p>Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor’s essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.</p>
|
|
||||||
<p>In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.</p>
|
|
||||||
<p>If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either <strong>(1)</strong> cause the Corresponding Source to be so available, or <strong>(2)</strong> arrange to deprive yourself of the benefit of the patent license for this particular work, or <strong>(3)</strong> arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient’s use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.</p>
|
|
||||||
<p>If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.</p>
|
|
||||||
<p>A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license <strong>(a)</strong> in connection with copies of the covered work conveyed by you (or copies made from those copies), or <strong>(b)</strong> primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.</p>
|
|
||||||
<p>Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_12-no-surrender-of-others-freedom">12. No Surrender of Others’ Freedom<a class="anchor" aria-label="anchor" href="#id_12-no-surrender-of-others-freedom"></a></h3>
|
|
||||||
<p>If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_13-use-with-the-gnu-affero-general-public-license">13. Use with the GNU Affero General Public License<a class="anchor" aria-label="anchor" href="#id_13-use-with-the-gnu-affero-general-public-license"></a></h3>
|
|
||||||
<p>Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_14-revised-versions-of-this-license">14. Revised Versions of this License<a class="anchor" aria-label="anchor" href="#id_14-revised-versions-of-this-license"></a></h3>
|
|
||||||
<p>The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p>
|
|
||||||
<p>Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.</p>
|
|
||||||
<p>If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy’s public statement of acceptance of a version permanently authorizes you to choose that version for the Program.</p>
|
|
||||||
<p>Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_15-disclaimer-of-warranty">15. Disclaimer of Warranty<a class="anchor" aria-label="anchor" href="#id_15-disclaimer-of-warranty"></a></h3>
|
|
||||||
<p>THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_16-limitation-of-liability">16. Limitation of Liability<a class="anchor" aria-label="anchor" href="#id_16-limitation-of-liability"></a></h3>
|
|
||||||
<p>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level3">
|
|
||||||
<h3 id="id_17-interpretation-of-sections-15-and-16">17. Interpretation of Sections 15 and 16<a class="anchor" aria-label="anchor" href="#id_17-interpretation-of-sections-15-and-16"></a></h3>
|
|
||||||
<p>If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.</p>
|
|
||||||
<p><em>END OF TERMS AND CONDITIONS</em></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="how-to-apply-these-terms-to-your-new-programs">How to Apply These Terms to Your New Programs<a class="anchor" aria-label="anchor" href="#how-to-apply-these-terms-to-your-new-programs"></a></h2>
|
|
||||||
<p>If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.</p>
|
|
||||||
<p>To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.</p>
|
|
||||||
<div class="sourceCode" id="cb1"><pre class="sourceCode R"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="sc"><</span>one line to give the program<span class="st">'s name and a brief idea of what it does.></span></span>
|
|
||||||
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="st">Copyright (C) <year> <name of author></span></span>
|
|
||||||
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span>
|
|
||||||
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="st">This program is free software: you can redistribute it and/or modify</span></span>
|
|
||||||
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="st">it under the terms of the GNU General Public License as published by</span></span>
|
|
||||||
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="st">the Free Software Foundation, either version 3 of the License, or</span></span>
|
|
||||||
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a><span class="st">(at your option) any later version.</span></span>
|
|
||||||
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a></span>
|
|
||||||
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a><span class="st">This program is distributed in the hope that it will be useful,</span></span>
|
|
||||||
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="st">but WITHOUT ANY WARRANTY; without even the implied warranty of</span></span>
|
|
||||||
<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a><span class="st">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></span>
|
|
||||||
<span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a><span class="st">GNU General Public License for more details.</span></span>
|
|
||||||
<span id="cb1-13"><a href="#cb1-13" aria-hidden="true" tabindex="-1"></a></span>
|
|
||||||
<span id="cb1-14"><a href="#cb1-14" aria-hidden="true" tabindex="-1"></a><span class="st">You should have received a copy of the GNU General Public License</span></span>
|
|
||||||
<span id="cb1-15"><a href="#cb1-15" aria-hidden="true" tabindex="-1"></a><span class="st">along with this program. If not, see <http://www.gnu.org/licenses/>.</span></span></code></pre></div>
|
|
||||||
<p>Also add information on how to contact you by electronic and paper mail.</p>
|
|
||||||
<p>If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:</p>
|
|
||||||
<div class="sourceCode" id="cb2"><pre class="sourceCode R"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="sc"><</span>program<span class="sc">></span> <span class="fu">Copyright</span> (C) <span class="sc"><</span>year<span class="sc">></span> <span class="er"><</span>name of author<span class="sc">></span></span>
|
|
||||||
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>This program comes with ABSOLUTELY NO WARRANTY; <span class="cf">for</span> details type <span class="st">'show w'</span>.</span>
|
|
||||||
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>This is free software, and you are welcome to redistribute it</span>
|
|
||||||
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a>under certain conditions; type <span class="st">'show c'</span> <span class="cf">for</span> details.</span></code></pre></div>
|
|
||||||
<p>The hypothetical commands <code>show w</code> and <code>show c</code> should show the appropriate parts of the General Public License. Of course, your program’s commands might be different; for a GUI interface, you would use an “about box”.</p>
|
|
||||||
<p>You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <<a href="http://www.gnu.org/licenses/" class="external-link uri">http://www.gnu.org/licenses/</a>>.</p>
|
|
||||||
<p>The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <<a href="http://www.gnu.org/philosophy/why-not-lgpl.html" class="external-link uri">http://www.gnu.org/philosophy/why-not-lgpl.html</a>>.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
Before Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 13 KiB |
@ -1,77 +0,0 @@
|
|||||||
<!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>Articles • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Articles"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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="nav-item">
|
|
||||||
<a class="nav-link" href="../reference/index.html">Reference</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab fa fab fa-github fa-lg"></span>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul></div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav><div class="container template-article-index">
|
|
||||||
<div class="row">
|
|
||||||
<main id="main" class="col-md-9"><div class="page-header">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Articles</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="section ">
|
|
||||||
<h3>All vignettes</h3>
|
|
||||||
<p class="section-desc"></p>
|
|
||||||
|
|
||||||
<dl><dt><a href="Introduction.html">Introduction</a></dt>
|
|
||||||
<dd>
|
|
||||||
</dd></dl></div>
|
|
||||||
</main></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,100 +0,0 @@
|
|||||||
<!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>Authors and Citation • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="pkgdown.js"></script><meta property="og:title" content="Authors and Citation"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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="nav-item">
|
|
||||||
<a class="nav-link" href="reference/index.html">Reference</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab fa fab fa-github fa-lg"></span>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul></div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav><div class="container template-citation-authors">
|
|
||||||
<div class="row">
|
|
||||||
<main id="main" class="col-md-9"><div class="page-header">
|
|
||||||
<img src="logo.png" class="logo" alt=""><h1>Authors and Citation</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="section level2 citation">
|
|
||||||
<h2>Authors</h2>
|
|
||||||
|
|
||||||
<ul class="list-unstyled"><li>
|
|
||||||
<p><strong>Andreas Gammelgaard Damsbo</strong>. Author, maintainer. <a href="https://orcid.org/0000-0002-7559-1154" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a>
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<p><strong>Paul Egeler</strong>. Author.
|
|
||||||
</p>
|
|
||||||
</li>
|
|
||||||
</ul></div>
|
|
||||||
|
|
||||||
<div class="section level2 citation">
|
|
||||||
<h2 id="citation">Citation</h2>
|
|
||||||
<p><small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/DESCRIPTION" class="external-link"><code>DESCRIPTION</code></a></small></p>
|
|
||||||
|
|
||||||
<p>Damsbo A, Egeler P (2023).
|
|
||||||
<em>REDCapCAST: REDCap Castellated Data Handling</em>.
|
|
||||||
R package version 23.6.1, <a href="https://github.com/agdamsbo/REDCapCAST" class="external-link">https://github.com/agdamsbo/REDCapCAST</a>.
|
|
||||||
</p>
|
|
||||||
<pre>@Manual{,
|
|
||||||
title = {REDCapCAST: REDCap Castellated Data Handling},
|
|
||||||
author = {Andreas Gammelgaard Damsbo and Paul Egeler},
|
|
||||||
year = {2023},
|
|
||||||
note = {R package version 23.6.1},
|
|
||||||
url = {https://github.com/agdamsbo/REDCapCAST},
|
|
||||||
}</pre>
|
|
||||||
</div>
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
60
docs/bootstrap-toc.css
vendored
@ -1,60 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Bootstrap Table of Contents v0.4.1 (http://afeld.github.io/bootstrap-toc/)
|
|
||||||
* Copyright 2015 Aidan Feldman
|
|
||||||
* Licensed under MIT (https://github.com/afeld/bootstrap-toc/blob/gh-pages/LICENSE.md) */
|
|
||||||
|
|
||||||
/* modified from https://github.com/twbs/bootstrap/blob/94b4076dd2efba9af71f0b18d4ee4b163aa9e0dd/docs/assets/css/src/docs.css#L548-L601 */
|
|
||||||
|
|
||||||
/* All levels of nav */
|
|
||||||
nav[data-toggle='toc'] .nav > li > a {
|
|
||||||
display: block;
|
|
||||||
padding: 4px 20px;
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 500;
|
|
||||||
color: #767676;
|
|
||||||
}
|
|
||||||
nav[data-toggle='toc'] .nav > li > a:hover,
|
|
||||||
nav[data-toggle='toc'] .nav > li > a:focus {
|
|
||||||
padding-left: 19px;
|
|
||||||
color: #563d7c;
|
|
||||||
text-decoration: none;
|
|
||||||
background-color: transparent;
|
|
||||||
border-left: 1px solid #563d7c;
|
|
||||||
}
|
|
||||||
nav[data-toggle='toc'] .nav > .active > a,
|
|
||||||
nav[data-toggle='toc'] .nav > .active:hover > a,
|
|
||||||
nav[data-toggle='toc'] .nav > .active:focus > a {
|
|
||||||
padding-left: 18px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #563d7c;
|
|
||||||
background-color: transparent;
|
|
||||||
border-left: 2px solid #563d7c;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Nav: second level (shown on .active) */
|
|
||||||
nav[data-toggle='toc'] .nav .nav {
|
|
||||||
display: none; /* Hide by default, but at >768px, show it */
|
|
||||||
padding-bottom: 10px;
|
|
||||||
}
|
|
||||||
nav[data-toggle='toc'] .nav .nav > li > a {
|
|
||||||
padding-top: 1px;
|
|
||||||
padding-bottom: 1px;
|
|
||||||
padding-left: 30px;
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
nav[data-toggle='toc'] .nav .nav > li > a:hover,
|
|
||||||
nav[data-toggle='toc'] .nav .nav > li > a:focus {
|
|
||||||
padding-left: 29px;
|
|
||||||
}
|
|
||||||
nav[data-toggle='toc'] .nav .nav > .active > a,
|
|
||||||
nav[data-toggle='toc'] .nav .nav > .active:hover > a,
|
|
||||||
nav[data-toggle='toc'] .nav .nav > .active:focus > a {
|
|
||||||
padding-left: 28px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* from https://github.com/twbs/bootstrap/blob/e38f066d8c203c3e032da0ff23cd2d6098ee2dd6/docs/assets/css/src/docs.css#L631-L634 */
|
|
||||||
nav[data-toggle='toc'] .nav > .active > ul {
|
|
||||||
display: block;
|
|
||||||
}
|
|
159
docs/bootstrap-toc.js
vendored
@ -1,159 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Bootstrap Table of Contents v0.4.1 (http://afeld.github.io/bootstrap-toc/)
|
|
||||||
* Copyright 2015 Aidan Feldman
|
|
||||||
* Licensed under MIT (https://github.com/afeld/bootstrap-toc/blob/gh-pages/LICENSE.md) */
|
|
||||||
(function() {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
window.Toc = {
|
|
||||||
helpers: {
|
|
||||||
// return all matching elements in the set, or their descendants
|
|
||||||
findOrFilter: function($el, selector) {
|
|
||||||
// http://danielnouri.org/notes/2011/03/14/a-jquery-find-that-also-finds-the-root-element/
|
|
||||||
// http://stackoverflow.com/a/12731439/358804
|
|
||||||
var $descendants = $el.find(selector);
|
|
||||||
return $el.filter(selector).add($descendants).filter(':not([data-toc-skip])');
|
|
||||||
},
|
|
||||||
|
|
||||||
generateUniqueIdBase: function(el) {
|
|
||||||
var text = $(el).text();
|
|
||||||
var anchor = text.trim().toLowerCase().replace(/[^A-Za-z0-9]+/g, '-');
|
|
||||||
return anchor || el.tagName.toLowerCase();
|
|
||||||
},
|
|
||||||
|
|
||||||
generateUniqueId: function(el) {
|
|
||||||
var anchorBase = this.generateUniqueIdBase(el);
|
|
||||||
for (var i = 0; ; i++) {
|
|
||||||
var anchor = anchorBase;
|
|
||||||
if (i > 0) {
|
|
||||||
// add suffix
|
|
||||||
anchor += '-' + i;
|
|
||||||
}
|
|
||||||
// check if ID already exists
|
|
||||||
if (!document.getElementById(anchor)) {
|
|
||||||
return anchor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
generateAnchor: function(el) {
|
|
||||||
if (el.id) {
|
|
||||||
return el.id;
|
|
||||||
} else {
|
|
||||||
var anchor = this.generateUniqueId(el);
|
|
||||||
el.id = anchor;
|
|
||||||
return anchor;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
createNavList: function() {
|
|
||||||
return $('<ul class="nav"></ul>');
|
|
||||||
},
|
|
||||||
|
|
||||||
createChildNavList: function($parent) {
|
|
||||||
var $childList = this.createNavList();
|
|
||||||
$parent.append($childList);
|
|
||||||
return $childList;
|
|
||||||
},
|
|
||||||
|
|
||||||
generateNavEl: function(anchor, text) {
|
|
||||||
var $a = $('<a></a>');
|
|
||||||
$a.attr('href', '#' + anchor);
|
|
||||||
$a.text(text);
|
|
||||||
var $li = $('<li></li>');
|
|
||||||
$li.append($a);
|
|
||||||
return $li;
|
|
||||||
},
|
|
||||||
|
|
||||||
generateNavItem: function(headingEl) {
|
|
||||||
var anchor = this.generateAnchor(headingEl);
|
|
||||||
var $heading = $(headingEl);
|
|
||||||
var text = $heading.data('toc-text') || $heading.text();
|
|
||||||
return this.generateNavEl(anchor, text);
|
|
||||||
},
|
|
||||||
|
|
||||||
// Find the first heading level (`<h1>`, then `<h2>`, etc.) that has more than one element. Defaults to 1 (for `<h1>`).
|
|
||||||
getTopLevel: function($scope) {
|
|
||||||
for (var i = 1; i <= 6; i++) {
|
|
||||||
var $headings = this.findOrFilter($scope, 'h' + i);
|
|
||||||
if ($headings.length > 1) {
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
},
|
|
||||||
|
|
||||||
// returns the elements for the top level, and the next below it
|
|
||||||
getHeadings: function($scope, topLevel) {
|
|
||||||
var topSelector = 'h' + topLevel;
|
|
||||||
|
|
||||||
var secondaryLevel = topLevel + 1;
|
|
||||||
var secondarySelector = 'h' + secondaryLevel;
|
|
||||||
|
|
||||||
return this.findOrFilter($scope, topSelector + ',' + secondarySelector);
|
|
||||||
},
|
|
||||||
|
|
||||||
getNavLevel: function(el) {
|
|
||||||
return parseInt(el.tagName.charAt(1), 10);
|
|
||||||
},
|
|
||||||
|
|
||||||
populateNav: function($topContext, topLevel, $headings) {
|
|
||||||
var $context = $topContext;
|
|
||||||
var $prevNav;
|
|
||||||
|
|
||||||
var helpers = this;
|
|
||||||
$headings.each(function(i, el) {
|
|
||||||
var $newNav = helpers.generateNavItem(el);
|
|
||||||
var navLevel = helpers.getNavLevel(el);
|
|
||||||
|
|
||||||
// determine the proper $context
|
|
||||||
if (navLevel === topLevel) {
|
|
||||||
// use top level
|
|
||||||
$context = $topContext;
|
|
||||||
} else if ($prevNav && $context === $topContext) {
|
|
||||||
// create a new level of the tree and switch to it
|
|
||||||
$context = helpers.createChildNavList($prevNav);
|
|
||||||
} // else use the current $context
|
|
||||||
|
|
||||||
$context.append($newNav);
|
|
||||||
|
|
||||||
$prevNav = $newNav;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
parseOps: function(arg) {
|
|
||||||
var opts;
|
|
||||||
if (arg.jquery) {
|
|
||||||
opts = {
|
|
||||||
$nav: arg
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
opts = arg;
|
|
||||||
}
|
|
||||||
opts.$scope = opts.$scope || $(document.body);
|
|
||||||
return opts;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// accepts a jQuery object, or an options object
|
|
||||||
init: function(opts) {
|
|
||||||
opts = this.helpers.parseOps(opts);
|
|
||||||
|
|
||||||
// ensure that the data attribute is in place for styling
|
|
||||||
opts.$nav.attr('data-toggle', 'toc');
|
|
||||||
|
|
||||||
var $topContext = this.helpers.createChildNavList(opts.$nav);
|
|
||||||
var topLevel = this.helpers.getTopLevel(opts.$scope);
|
|
||||||
var $headings = this.helpers.getHeadings(opts.$scope, topLevel);
|
|
||||||
this.helpers.populateNav($topContext, topLevel, $headings);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$(function() {
|
|
||||||
$('nav[data-toggle="toc"]').each(function(i, el) {
|
|
||||||
var $nav = $(el);
|
|
||||||
Toc.init($nav);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
})();
|
|
6
docs/deps/bootstrap-5.2.2/bootstrap.min.css
vendored
@ -1,4 +0,0 @@
|
|||||||
<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.2.2/bootstrap.min.css" rel="stylesheet" />
|
|
||||||
<script src="deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script>
|
|
10881
docs/deps/jquery-3.6.0/jquery-3.6.0.js
vendored
2
docs/deps/jquery-3.6.0/jquery-3.6.0.min.js
vendored
@ -1,85 +0,0 @@
|
|||||||
$(function() {
|
|
||||||
|
|
||||||
// register a handler to move the focus to the search bar
|
|
||||||
// upon pressing shift + "/" (i.e. "?")
|
|
||||||
$(document).on('keydown', function(e) {
|
|
||||||
if (e.shiftKey && e.keyCode == 191) {
|
|
||||||
e.preventDefault();
|
|
||||||
$("#search-input").focus();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
// do keyword highlighting
|
|
||||||
/* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */
|
|
||||||
var mark = function() {
|
|
||||||
|
|
||||||
var referrer = document.URL ;
|
|
||||||
var paramKey = "q" ;
|
|
||||||
|
|
||||||
if (referrer.indexOf("?") !== -1) {
|
|
||||||
var qs = referrer.substr(referrer.indexOf('?') + 1);
|
|
||||||
var qs_noanchor = qs.split('#')[0];
|
|
||||||
var qsa = qs_noanchor.split('&');
|
|
||||||
var keyword = "";
|
|
||||||
|
|
||||||
for (var i = 0; i < qsa.length; i++) {
|
|
||||||
var currentParam = qsa[i].split('=');
|
|
||||||
|
|
||||||
if (currentParam.length !== 2) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (currentParam[0] == paramKey) {
|
|
||||||
keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (keyword !== "") {
|
|
||||||
$(".contents").unmark({
|
|
||||||
done: function() {
|
|
||||||
$(".contents").mark(keyword);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
mark();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
/* Search term highlighting ------------------------------*/
|
|
||||||
|
|
||||||
function matchedWords(hit) {
|
|
||||||
var words = [];
|
|
||||||
|
|
||||||
var hierarchy = hit._highlightResult.hierarchy;
|
|
||||||
// loop to fetch from lvl0, lvl1, etc.
|
|
||||||
for (var idx in hierarchy) {
|
|
||||||
words = words.concat(hierarchy[idx].matchedWords);
|
|
||||||
}
|
|
||||||
|
|
||||||
var content = hit._highlightResult.content;
|
|
||||||
if (content) {
|
|
||||||
words = words.concat(content.matchedWords);
|
|
||||||
}
|
|
||||||
|
|
||||||
// return unique words
|
|
||||||
var words_uniq = [...new Set(words)];
|
|
||||||
return words_uniq;
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateHitURL(hit) {
|
|
||||||
|
|
||||||
var words = matchedWords(hit);
|
|
||||||
var url = "";
|
|
||||||
|
|
||||||
if (hit.anchor) {
|
|
||||||
url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor;
|
|
||||||
} else {
|
|
||||||
url = hit.url + '?q=' + escape(words.join(" "));
|
|
||||||
}
|
|
||||||
|
|
||||||
return url;
|
|
||||||
}
|
|
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.0 KiB |
BIN
docs/favicon.ico
Before Width: | Height: | Size: 15 KiB |
204
docs/index.html
@ -1,204 +0,0 @@
|
|||||||
<!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">
|
|
||||||
<meta name="description" content="Forked from REDCapRITS by Paul Egeler and Spectrum Health.
|
|
||||||
See <https://github.com/SpectrumHealthResearch/REDCapRITS>.
|
|
||||||
Handles castellated datasets from REDCap projects with repeating instruments.
|
|
||||||
Assists in casting tidy tables from raw REDCap data exports for each
|
|
||||||
repeated instrument. Keeps a focused data export approach, by allowing to
|
|
||||||
only export required data from the database.
|
|
||||||
REDCap (Research Electronic Data Capture) is a secure, web-based software
|
|
||||||
platform designed to support data capture for research studies, providing
|
|
||||||
1) an intuitive interface for validated data capture; 2) audit trails for
|
|
||||||
tracking data manipulation and export procedures; 3) automated export
|
|
||||||
procedures for seamless data downloads to common statistical packages; and
|
|
||||||
4) procedures for data integration and interoperability with external sources
|
|
||||||
(Harris et al (2009) <doi:10.1016/j.jbi.2008.08.010>;
|
|
||||||
Harris et al (2019) <doi:10.1016/j.jbi.2019.103208>).">
|
|
||||||
<title>REDCap Castellated Data Handling • REDCapCAST</title>
|
|
||||||
<!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
|
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
|
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="apple-touch-icon.png">
|
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="120x120" href="apple-touch-icon-120x120.png">
|
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="76x76" href="apple-touch-icon-76x76.png">
|
|
||||||
<link rel="apple-touch-icon" type="image/png" sizes="60x60" href="apple-touch-icon-60x60.png">
|
|
||||||
<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.2.2/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<script src="deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous">
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous">
|
|
||||||
<!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="pkgdown.js"></script><meta property="og:title" content="REDCap Castellated Data Handling">
|
|
||||||
<meta property="og:description" content="Forked from REDCapRITS by Paul Egeler and Spectrum Health.
|
|
||||||
See <https://github.com/SpectrumHealthResearch/REDCapRITS>.
|
|
||||||
Handles castellated datasets from REDCap projects with repeating instruments.
|
|
||||||
Assists in casting tidy tables from raw REDCap data exports for each
|
|
||||||
repeated instrument. Keeps a focused data export approach, by allowing to
|
|
||||||
only export required data from the database.
|
|
||||||
REDCap (Research Electronic Data Capture) is a secure, web-based software
|
|
||||||
platform designed to support data capture for research studies, providing
|
|
||||||
1) an intuitive interface for validated data capture; 2) audit trails for
|
|
||||||
tracking data manipulation and export procedures; 3) automated export
|
|
||||||
procedures for seamless data downloads to common statistical packages; and
|
|
||||||
4) procedures for data integration and interoperability with external sources
|
|
||||||
(Harris et al (2009) <doi:10.1016/j.jbi.2008.08.010>;
|
|
||||||
Harris et al (2019) <doi:10.1016/j.jbi.2019.103208>).">
|
|
||||||
<meta property="og:image" content="/logo.png">
|
|
||||||
<!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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="nav-item">
|
|
||||||
<a class="nav-link" href="reference/index.html">Reference</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="search.json" id="search-input" placeholder="Search for" autocomplete="off">
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab fa fab fa-github fa-lg"></span>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav><div class="container template-home">
|
|
||||||
<div class="row">
|
|
||||||
<main id="main" class="col-md-9">
|
|
||||||
<div class="section level1">
|
|
||||||
<div class="page-header">
|
|
||||||
<img src="logo.png" class="logo" alt=""><h1 id="redcapcast-package-">REDCapCAST package <a class="anchor" aria-label="anchor" href="#redcapcast-package-"></a>
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
<p>REDCap Castellated data handling when using repeated instruments.</p>
|
|
||||||
<p>This package is a fork of <a href="https://github.com/SpectrumHealthResearch/REDCapRITS" class="external-link">SpectrumHealthResearch/REDCapRITS</a>. The REDCapRITS represents great and extensive work to handle castellated REDCap data in different programming languages. This fork is purely minded on R usage and includes a few implementations of the main <code>REDCap_split</code> function.</p>
|
|
||||||
<p>The main goal for this project was to allow for a “minimal data” approach by allowing to filter records, instruments and variables in the export to only download data needed. I think this approach is desireable for handling sensitive, clinical data. No similar functionality is available from similar tools (like <code>REDCapR</code> or <code>REDCapTidieR</code>). Please refer to <a href="https://redcap-tools.github.io/" class="external-link">REDCap-Tools</a> for other great tools.</p>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="use-and-immprovements">Use and immprovements<a class="anchor" aria-label="anchor" href="#use-and-immprovements"></a>
|
|
||||||
</h2>
|
|
||||||
<p>This package is primarily relevant for working with longitudinal projects and/or projects using repeated instruments. Here is just a short descirption of the main functions:</p>
|
|
||||||
<ul>
|
|
||||||
<li><p><code>REDcap_split()</code>: Works largely as the original <code>REDCapRITS::REDCap_split()</code>. It takes a REDCap dataset and metadata (data dictionary) to split the data set into a list of dataframes of instruments.</p></li>
|
|
||||||
<li><p><code><a href="reference/read_redcap_tables.html">read_redcap_tables()</a></code>: wraps the use of <a href="https://github.com/OuhscBbmc/REDCapR" class="external-link"><code>REDCapR::redcap_read()</code></a> with <code><a href="reference/REDCap_split.html">REDCap_split()</a></code> to ease the export of REDCap data.</p></li>
|
|
||||||
<li><p><code><a href="reference/redcap_wider.html">redcap_wider()</a></code>: pivots each data frame with repeated instruments to a wide format utilizing the <a href="https://tidyr.tidyverse.org/reference/pivot_wider.html" class="external-link"><code>tidyr::pivot_wider()</code></a> from the <a href="https://www.tidyverse.org/" class="external-link">tidyverse</a>.</p></li>
|
|
||||||
</ul>
|
|
||||||
<p>Compared to the original <code>REDCapRITS</code>, all matching functions are improved to accept column naming of REDCap data from manual download or API export.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="future">Future<a class="anchor" aria-label="anchor" href="#future"></a>
|
|
||||||
</h2>
|
|
||||||
<p>The plan with this package is to be bundled with a Handbook on working with REDCap from R. I plan to also include functionality to assist in casting (yes, pun intended) the initial REDCap database.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="installation">Installation<a class="anchor" aria-label="anchor" href="#installation"></a>
|
|
||||||
</h2>
|
|
||||||
<p>Install the latest version directly from GitHub:</p>
|
|
||||||
<pre><code><span><span class="fu">remotes</span><span class="fu">::</span><span class="fu"><a href="https://remotes.r-lib.org/reference/install_github.html" class="external-link">install_github</a></span><span class="op">(</span><span class="st">"agdamsbo/REDCapCAST"</span><span class="op">)</span></span></code></pre>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main><aside class="col-md-3"><div class="links">
|
|
||||||
<h2 data-toc-skip>Links</h2>
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li><a href="https://cloud.r-project.org/package=REDCapCAST" class="external-link">View on CRAN</a></li>
|
|
||||||
<li><a href="https://github.com/agdamsbo/REDCapCAST/" class="external-link">Browse source code</a></li>
|
|
||||||
<li><a href="https://github.com/agdamsbo/REDCapCAST/issues" class="external-link">Report a bug</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="license">
|
|
||||||
<h2 data-toc-skip>License</h2>
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li><a href="LICENSE.html">Full license</a></li>
|
|
||||||
<li><small>GPL (>= 3)</small></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="citation">
|
|
||||||
<h2 data-toc-skip>Citation</h2>
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li><a href="authors.html#citation">Citing REDCapCAST</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="developers">
|
|
||||||
<h2 data-toc-skip>Developers</h2>
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li>Andreas Gammelgaard Damsbo <br><small class="roles"> Author, maintainer </small> <a href="https://orcid.org/0000-0002-7559-1154" target="orcid.widget" aria-label="ORCID" class="external-link"><span class="fab fa-orcid orcid" aria-hidden="true"></span></a> </li>
|
|
||||||
<li>Paul Egeler <br><small class="roles"> Author </small> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="dev-status">
|
|
||||||
<h2 data-toc-skip>Dev status</h2>
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
<li><a href="https://github.com/agdamsbo/REDCapCAST" class="external-link"><img src="https://img.shields.io/github/r-package/v/agdamsbo/REDCapCAST" alt="GitHub R package version"></a></li>
|
|
||||||
<li><a href="https://CRAN.R-project.org/package=REDCapCAST" class="external-link"><img src="https://img.shields.io/cran/v/REDCapCAST" alt="CRAN/METACRAN"></a></li>
|
|
||||||
<li><a href="https://doi.org/10.5281/zenodo.8013985" class="external-link"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.8013985.svg" alt="DOI"></a></li>
|
|
||||||
<li><a href="https://github.com/agdamsbo/REDCapCAST/actions/workflows/R-CMD-check.yaml" class="external-link"><img src="https://github.com/agdamsbo/REDCapCAST/actions/workflows/R-CMD-check.yaml/badge.svg" alt="R-CMD-check"></a></li>
|
|
||||||
<li><a href="https://github.com/agdamsbo/REDCapCAST/actions/workflows/pages/pages-build-deployment" class="external-link"><img src="https://github.com/agdamsbo/REDCapCAST/actions/workflows/pages/pages-build-deployment/badge.svg" alt="Page deployed"></a></li>
|
|
||||||
<li><a href="https://app.codecov.io/gh/agdamsbo/REDCapCAST?branch=master" class="external-link"><img src="https://codecov.io/gh/agdamsbo/REDCapCAST/branch/master/graph/badge.svg" alt="Codecov test coverage"></a></li>
|
|
||||||
<li><a href="https://cran.r-project.org/package=REDCapCAST" class="external-link"><img src="https://cranlogs.r-pkg.org/badges/grand-total/REDCapCAST" alt="CRAN downloads"></a></li>
|
|
||||||
<li><a href="https://lifecycle.r-lib.org/articles/stages.html" class="external-link"><img src="https://img.shields.io/badge/lifecycle-experimental-orange.svg" alt="Lifecycle: experimental"></a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</aside>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p>
|
|
||||||
<p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p>
|
|
||||||
<p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
||||||
viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
|
|
||||||
<style type="text/css">
|
|
||||||
.st0{fill:#75AADB;}
|
|
||||||
</style>
|
|
||||||
<path class="st0" d="M4,11.3h1.3v1.3H4c-2,0-4-2.3-4-4.7s2.1-4.7,4-4.7h5.3c1.9,0,4,2.3,4,4.7c0,1.9-1.2,3.6-2.7,4.3v-1.5
|
|
||||||
C11.4,10.2,12,9.1,12,8c0-1.7-1.4-3.3-2.7-3.3H4C2.7,4.7,1.3,6.3,1.3,8S2.7,11.3,4,11.3z M16,7.3h-1.3v1.3H16c1.3,0,2.7,1.6,2.7,3.3
|
|
||||||
s-1.4,3.3-2.7,3.3h-5.3C9.4,15.3,8,13.7,8,12c0-1.1,0.6-2.2,1.3-2.8V7.7C7.9,8.4,6.7,10.1,6.7,12c0,2.4,2.1,4.7,4,4.7H16
|
|
||||||
c1.9,0,4-2.3,4-4.7S18,7.3,16,7.3z"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 810 B |
BIN
docs/logo.png
Before Width: | Height: | Size: 9.8 KiB |
@ -1,115 +0,0 @@
|
|||||||
<!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>Changelog • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Changelog"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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="nav-item">
|
|
||||||
<a class="nav-link" href="../reference/index.html">Reference</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="active nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab fa fab fa-github fa-lg"></span>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul></div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav><div class="container template-news">
|
|
||||||
<div class="row">
|
|
||||||
<main id="main" class="col-md-9"><div class="page-header">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Changelog</h1>
|
|
||||||
<small>Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/NEWS.md" class="external-link"><code>NEWS.md</code></a></small>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 class="pkg-version" data-toc-text="23.6.1" id="redcapcast-2361">REDCapCAST 23.6.1<a class="anchor" aria-label="anchor" href="#redcapcast-2361"></a></h2><p class="text-muted">CRAN release: 2023-06-06</p>
|
|
||||||
<div class="section level4">
|
|
||||||
<h4 id="documentation-23-6-1">Documentation:<a class="anchor" aria-label="anchor" href="#documentation-23-6-1"></a></h4>
|
|
||||||
<ul><li>Updated description.</li>
|
|
||||||
<li>Look! A hex icon!</li>
|
|
||||||
<li>Heading for CRAN.</li>
|
|
||||||
</ul></div>
|
|
||||||
</div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 class="pkg-version" data-toc-text="23.4.1" id="redcapcast-2341">REDCapCAST 23.4.1<a class="anchor" aria-label="anchor" href="#redcapcast-2341"></a></h2>
|
|
||||||
<div class="section level4">
|
|
||||||
<h4 id="documentation-23-4-1">Documentation:<a class="anchor" aria-label="anchor" href="#documentation-23-4-1"></a></h4>
|
|
||||||
<ul><li>Aiming for CRAN</li>
|
|
||||||
</ul></div>
|
|
||||||
</div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 class="pkg-version" data-toc-text="23.3.2" id="redcapcast-2332">REDCapCAST 23.3.2<a class="anchor" aria-label="anchor" href="#redcapcast-2332"></a></h2>
|
|
||||||
<div class="section level4">
|
|
||||||
<h4 id="documentation-23-3-2">Documentation:<a class="anchor" aria-label="anchor" href="#documentation-23-3-2"></a></h4>
|
|
||||||
<ul><li><p>Page added. Vignettes to follow.</p></li>
|
|
||||||
<li><p>GithubActions tests added and code coverage assessed. Badge galore..</p></li>
|
|
||||||
</ul></div>
|
|
||||||
</div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 class="pkg-version" data-toc-text="23.3.1" id="redcapcast-2331">REDCapCAST 23.3.1<a class="anchor" aria-label="anchor" href="#redcapcast-2331"></a></h2>
|
|
||||||
<div class="section level4">
|
|
||||||
<h4 id="new-name-redcapcast-23-3-1">New name: REDCapCAST<a class="anchor" aria-label="anchor" href="#new-name-redcapcast-23-3-1"></a></h4>
|
|
||||||
<p>To reflect new functions and the limitation to only working in R, I have changed the naming of the fork, while still, of course, maintaining the status as a fork.</p>
|
|
||||||
<p>The versioning has moved to a monthly naming convention.</p>
|
|
||||||
<p>The main goal this package is to keep the option to only export a defined subset of the whole dataset from the REDCap server as is made possible through the <code><a href="https://ouhscbbmc.github.io/REDCapR/reference/redcap_read.html" class="external-link">REDCapR::redcap_read()</a></code> function, and combine it with the work put into the REDCapRITS package and the handling of longitudinal projects and/or projects with repeated instruments.</p>
|
|
||||||
</div>
|
|
||||||
<div class="section level4">
|
|
||||||
<h4 id="functions-23-3-1">Functions:<a class="anchor" aria-label="anchor" href="#functions-23-3-1"></a></h4>
|
|
||||||
<ul><li><p><code><a href="../reference/read_redcap_tables.html">read_redcap_tables()</a></code> <strong>NEW</strong>: this function is mainly an implementation of the combined use of <code>REDCapR::readcap_read()</code> and <code><a href="../reference/REDCap_split.html">REDCap_split()</a></code> to maintain the focused nature of <code>REDCapR::readcap_read()</code>, to only download the specified data. Also implements tests of valid form names and event names. The usual fall-back solution was to get all data.</p></li>
|
|
||||||
<li><p><code><a href="../reference/redcap_wider.html">redcap_wider()</a></code> <strong>NEW</strong>: this function pivots the long data frames from <code><a href="../reference/read_redcap_tables.html">read_redcap_tables()</a></code> using <code><a href="https://tidyr.tidyverse.org/reference/pivot_wider.html" class="external-link">tidyr::pivot_wider()</a></code>.</p></li>
|
|
||||||
<li><p><code><a href="../reference/focused_metadata.html">focused_metadata()</a></code> <strong>NEW</strong>: a hidden helper function to enable a focused data acquisition approach to handle only a subset of metadata corresponding to the focused dataset.</p></li>
|
|
||||||
</ul></div>
|
|
||||||
<div class="section level4">
|
|
||||||
<h4 id="notes-23-3-1">Notes:<a class="anchor" aria-label="anchor" href="#notes-23-3-1"></a></h4>
|
|
||||||
<ul><li>metadata handling <strong>IMPROVED</strong>: improved handling of different column names in matadata (DataDictionary) from REDCap dependent on whether it is acquired thorugh the api og downloaded from the server.</li>
|
|
||||||
</ul></div>
|
|
||||||
</div>
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
384
docs/pkgdown.css
@ -1,384 +0,0 @@
|
|||||||
/* Sticky footer */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Basic idea: https://philipwalton.github.io/solved-by-flexbox/demos/sticky-footer/
|
|
||||||
* Details: https://github.com/philipwalton/solved-by-flexbox/blob/master/assets/css/components/site.css
|
|
||||||
*
|
|
||||||
* .Site -> body > .container
|
|
||||||
* .Site-content -> body > .container .row
|
|
||||||
* .footer -> footer
|
|
||||||
*
|
|
||||||
* Key idea seems to be to ensure that .container and __all its parents__
|
|
||||||
* have height set to 100%
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
html, body {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
body > .container {
|
|
||||||
display: flex;
|
|
||||||
height: 100%;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
body > .container .row {
|
|
||||||
flex: 1 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
|
||||||
margin-top: 45px;
|
|
||||||
padding: 35px 0 36px;
|
|
||||||
border-top: 1px solid #e5e5e5;
|
|
||||||
color: #666;
|
|
||||||
display: flex;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
footer p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
footer div {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
footer .pkgdown {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
footer p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.icon {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Ensure in-page images don't run outside their container */
|
|
||||||
.contents img {
|
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fix bug in bootstrap (only seen in firefox) */
|
|
||||||
summary {
|
|
||||||
display: list-item;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Typographic tweaking ---------------------------------*/
|
|
||||||
|
|
||||||
.contents .page-header {
|
|
||||||
margin-top: calc(-60px + 1em);
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
margin-left: 3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Section anchors ---------------------------------*/
|
|
||||||
|
|
||||||
a.anchor {
|
|
||||||
display: none;
|
|
||||||
margin-left: 5px;
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
|
|
||||||
background-image: url(./link.svg);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: 20px 20px;
|
|
||||||
background-position: center center;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1:hover .anchor,
|
|
||||||
h2:hover .anchor,
|
|
||||||
h3:hover .anchor,
|
|
||||||
h4:hover .anchor,
|
|
||||||
h5:hover .anchor,
|
|
||||||
h6:hover .anchor {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fixes for fixed navbar --------------------------*/
|
|
||||||
|
|
||||||
.contents h1, .contents h2, .contents h3, .contents h4 {
|
|
||||||
padding-top: 60px;
|
|
||||||
margin-top: -40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Navbar submenu --------------------------*/
|
|
||||||
|
|
||||||
.dropdown-submenu {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu>.dropdown-menu {
|
|
||||||
top: 0;
|
|
||||||
left: 100%;
|
|
||||||
margin-top: -6px;
|
|
||||||
margin-left: -1px;
|
|
||||||
border-radius: 0 6px 6px 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu:hover>.dropdown-menu {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu>a:after {
|
|
||||||
display: block;
|
|
||||||
content: " ";
|
|
||||||
float: right;
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
border-color: transparent;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 5px 0 5px 5px;
|
|
||||||
border-left-color: #cccccc;
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-right: -10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu:hover>a:after {
|
|
||||||
border-left-color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu.pull-left {
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu.pull-left>.dropdown-menu {
|
|
||||||
left: -100%;
|
|
||||||
margin-left: 10px;
|
|
||||||
border-radius: 6px 0 6px 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Sidebar --------------------------*/
|
|
||||||
|
|
||||||
#pkgdown-sidebar {
|
|
||||||
margin-top: 30px;
|
|
||||||
position: -webkit-sticky;
|
|
||||||
position: sticky;
|
|
||||||
top: 70px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pkgdown-sidebar h2 {
|
|
||||||
font-size: 1.5em;
|
|
||||||
margin-top: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pkgdown-sidebar h2:first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pkgdown-sidebar .list-unstyled li {
|
|
||||||
margin-bottom: 0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* bootstrap-toc tweaks ------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* All levels of nav */
|
|
||||||
|
|
||||||
nav[data-toggle='toc'] .nav > li > a {
|
|
||||||
padding: 4px 20px 4px 6px;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
font-weight: 400;
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav[data-toggle='toc'] .nav > li > a:hover,
|
|
||||||
nav[data-toggle='toc'] .nav > li > a:focus {
|
|
||||||
padding-left: 5px;
|
|
||||||
color: inherit;
|
|
||||||
border-left: 1px solid #878787;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav[data-toggle='toc'] .nav > .active > a,
|
|
||||||
nav[data-toggle='toc'] .nav > .active:hover > a,
|
|
||||||
nav[data-toggle='toc'] .nav > .active:focus > a {
|
|
||||||
padding-left: 5px;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
font-weight: 400;
|
|
||||||
color: inherit;
|
|
||||||
border-left: 2px solid #878787;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Nav: second level (shown on .active) */
|
|
||||||
|
|
||||||
nav[data-toggle='toc'] .nav .nav {
|
|
||||||
display: none; /* Hide by default, but at >768px, show it */
|
|
||||||
padding-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav[data-toggle='toc'] .nav .nav > li > a {
|
|
||||||
padding-left: 16px;
|
|
||||||
font-size: 1.35rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav[data-toggle='toc'] .nav .nav > li > a:hover,
|
|
||||||
nav[data-toggle='toc'] .nav .nav > li > a:focus {
|
|
||||||
padding-left: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav[data-toggle='toc'] .nav .nav > .active > a,
|
|
||||||
nav[data-toggle='toc'] .nav .nav > .active:hover > a,
|
|
||||||
nav[data-toggle='toc'] .nav .nav > .active:focus > a {
|
|
||||||
padding-left: 15px;
|
|
||||||
font-weight: 500;
|
|
||||||
font-size: 1.35rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* orcid ------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
.orcid {
|
|
||||||
font-size: 16px;
|
|
||||||
color: #A6CE39;
|
|
||||||
/* margins are required by official ORCID trademark and display guidelines */
|
|
||||||
margin-left:4px;
|
|
||||||
margin-right:4px;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Reference index & topics ----------------------------------------------- */
|
|
||||||
|
|
||||||
.ref-index th {font-weight: normal;}
|
|
||||||
|
|
||||||
.ref-index td {vertical-align: top; min-width: 100px}
|
|
||||||
.ref-index .icon {width: 40px;}
|
|
||||||
.ref-index .alias {width: 40%;}
|
|
||||||
.ref-index-icons .alias {width: calc(40% - 40px);}
|
|
||||||
.ref-index .title {width: 60%;}
|
|
||||||
|
|
||||||
.ref-arguments th {text-align: right; padding-right: 10px;}
|
|
||||||
.ref-arguments th, .ref-arguments td {vertical-align: top; min-width: 100px}
|
|
||||||
.ref-arguments .name {width: 20%;}
|
|
||||||
.ref-arguments .desc {width: 80%;}
|
|
||||||
|
|
||||||
/* Nice scrolling for wide elements --------------------------------------- */
|
|
||||||
|
|
||||||
table {
|
|
||||||
display: block;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Syntax highlighting ---------------------------------------------------- */
|
|
||||||
|
|
||||||
pre, code, pre code {
|
|
||||||
background-color: #f8f8f8;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
pre, pre code {
|
|
||||||
white-space: pre-wrap;
|
|
||||||
word-break: break-all;
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
border: 1px solid #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre .img, pre .r-plt {
|
|
||||||
margin: 5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre .img img, pre .r-plt img {
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
code a, pre a {
|
|
||||||
color: #375f84;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.sourceLine:hover {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fl {color: #1514b5;}
|
|
||||||
.fu {color: #000000;} /* function */
|
|
||||||
.ch,.st {color: #036a07;} /* string */
|
|
||||||
.kw {color: #264D66;} /* keyword */
|
|
||||||
.co {color: #888888;} /* comment */
|
|
||||||
|
|
||||||
.error {font-weight: bolder;}
|
|
||||||
.warning {font-weight: bolder;}
|
|
||||||
|
|
||||||
/* Clipboard --------------------------*/
|
|
||||||
|
|
||||||
.hasCopyButton {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-copy-ex {
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hasCopyButton:hover button.btn-copy-ex {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* headroom.js ------------------------ */
|
|
||||||
|
|
||||||
.headroom {
|
|
||||||
will-change: transform;
|
|
||||||
transition: transform 200ms linear;
|
|
||||||
}
|
|
||||||
.headroom--pinned {
|
|
||||||
transform: translateY(0%);
|
|
||||||
}
|
|
||||||
.headroom--unpinned {
|
|
||||||
transform: translateY(-100%);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* mark.js ----------------------------*/
|
|
||||||
|
|
||||||
mark {
|
|
||||||
background-color: rgba(255, 255, 51, 0.5);
|
|
||||||
border-bottom: 2px solid rgba(255, 153, 51, 0.3);
|
|
||||||
padding: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* vertical spacing after htmlwidgets */
|
|
||||||
.html-widget {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* fontawesome ------------------------ */
|
|
||||||
|
|
||||||
.fab {
|
|
||||||
font-family: "Font Awesome 5 Brands" !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* don't display links in code chunks when printing */
|
|
||||||
/* source: https://stackoverflow.com/a/10781533 */
|
|
||||||
@media print {
|
|
||||||
code a:link:after, code a:visited:after {
|
|
||||||
content: "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Section anchors ---------------------------------
|
|
||||||
Added in pandoc 2.11: https://github.com/jgm/pandoc-templates/commit/9904bf71
|
|
||||||
*/
|
|
||||||
|
|
||||||
div.csl-bib-body { }
|
|
||||||
div.csl-entry {
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
.hanging-indent div.csl-entry {
|
|
||||||
margin-left:2em;
|
|
||||||
text-indent:-2em;
|
|
||||||
}
|
|
||||||
div.csl-left-margin {
|
|
||||||
min-width:2em;
|
|
||||||
float:left;
|
|
||||||
}
|
|
||||||
div.csl-right-inline {
|
|
||||||
margin-left:2em;
|
|
||||||
padding-left:1em;
|
|
||||||
}
|
|
||||||
div.csl-indent {
|
|
||||||
margin-left: 2em;
|
|
||||||
}
|
|
156
docs/pkgdown.js
@ -1,156 +0,0 @@
|
|||||||
/* http://gregfranko.com/blog/jquery-best-practices/ */
|
|
||||||
(function($) {
|
|
||||||
$(function() {
|
|
||||||
|
|
||||||
$('nav.navbar').headroom();
|
|
||||||
|
|
||||||
Toc.init({
|
|
||||||
$nav: $("#toc"),
|
|
||||||
$scope: $("main h2, main h3, main h4, main h5, main h6")
|
|
||||||
});
|
|
||||||
|
|
||||||
if ($('#toc').length) {
|
|
||||||
$('body').scrollspy({
|
|
||||||
target: '#toc',
|
|
||||||
offset: $("nav.navbar").outerHeight() + 1
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Activate popovers
|
|
||||||
$('[data-bs-toggle="popover"]').popover({
|
|
||||||
container: 'body',
|
|
||||||
html: true,
|
|
||||||
trigger: 'focus',
|
|
||||||
placement: "top",
|
|
||||||
sanitize: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
$('[data-bs-toggle="tooltip"]').tooltip();
|
|
||||||
|
|
||||||
/* Clipboard --------------------------*/
|
|
||||||
|
|
||||||
function changeTooltipMessage(element, msg) {
|
|
||||||
var tooltipOriginalTitle=element.getAttribute('data-original-title');
|
|
||||||
element.setAttribute('data-original-title', msg);
|
|
||||||
$(element).tooltip('show');
|
|
||||||
element.setAttribute('data-original-title', tooltipOriginalTitle);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(ClipboardJS.isSupported()) {
|
|
||||||
$(document).ready(function() {
|
|
||||||
var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' title='Copy to clipboard' aria-label='Copy to clipboard' data-toggle='tooltip' data-placement='left' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy'></i></button>";
|
|
||||||
|
|
||||||
$("div.sourceCode").addClass("hasCopyButton");
|
|
||||||
|
|
||||||
// Insert copy buttons:
|
|
||||||
$(copyButton).prependTo(".hasCopyButton");
|
|
||||||
|
|
||||||
// Initialize tooltips:
|
|
||||||
$('.btn-copy-ex').tooltip({container: 'body'});
|
|
||||||
|
|
||||||
// Initialize clipboard:
|
|
||||||
var clipboard = new ClipboardJS('[data-clipboard-copy]', {
|
|
||||||
text: function(trigger) {
|
|
||||||
return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, "");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
clipboard.on('success', function(e) {
|
|
||||||
changeTooltipMessage(e.trigger, 'Copied!');
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
|
|
||||||
clipboard.on('error', function() {
|
|
||||||
changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy');
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Search marking --------------------------*/
|
|
||||||
var url = new URL(window.location.href);
|
|
||||||
var toMark = url.searchParams.get("q");
|
|
||||||
var mark = new Mark("main#main");
|
|
||||||
if (toMark) {
|
|
||||||
mark.mark(toMark, {
|
|
||||||
accuracy: {
|
|
||||||
value: "complementary",
|
|
||||||
limiters: [",", ".", ":", "/"],
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Search --------------------------*/
|
|
||||||
/* Adapted from https://github.com/rstudio/bookdown/blob/2d692ba4b61f1e466c92e78fd712b0ab08c11d31/inst/resources/bs4_book/bs4_book.js#L25 */
|
|
||||||
// Initialise search index on focus
|
|
||||||
var fuse;
|
|
||||||
$("#search-input").focus(async function(e) {
|
|
||||||
if (fuse) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$(e.target).addClass("loading");
|
|
||||||
var response = await fetch($("#search-input").data("search-index"));
|
|
||||||
var data = await response.json();
|
|
||||||
|
|
||||||
var options = {
|
|
||||||
keys: ["what", "text", "code"],
|
|
||||||
ignoreLocation: true,
|
|
||||||
threshold: 0.1,
|
|
||||||
includeMatches: true,
|
|
||||||
includeScore: true,
|
|
||||||
};
|
|
||||||
fuse = new Fuse(data, options);
|
|
||||||
|
|
||||||
$(e.target).removeClass("loading");
|
|
||||||
});
|
|
||||||
|
|
||||||
// Use algolia autocomplete
|
|
||||||
var options = {
|
|
||||||
autoselect: true,
|
|
||||||
debug: true,
|
|
||||||
hint: false,
|
|
||||||
minLength: 2,
|
|
||||||
};
|
|
||||||
var q;
|
|
||||||
async function searchFuse(query, callback) {
|
|
||||||
await fuse;
|
|
||||||
|
|
||||||
var items;
|
|
||||||
if (!fuse) {
|
|
||||||
items = [];
|
|
||||||
} else {
|
|
||||||
q = query;
|
|
||||||
var results = fuse.search(query, { limit: 20 });
|
|
||||||
items = results
|
|
||||||
.filter((x) => x.score <= 0.75)
|
|
||||||
.map((x) => x.item);
|
|
||||||
if (items.length === 0) {
|
|
||||||
items = [{dir:"Sorry 😿",previous_headings:"",title:"No results found.",what:"No results found.",path:window.location.href}];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
callback(items);
|
|
||||||
}
|
|
||||||
$("#search-input").autocomplete(options, [
|
|
||||||
{
|
|
||||||
name: "content",
|
|
||||||
source: searchFuse,
|
|
||||||
templates: {
|
|
||||||
suggestion: (s) => {
|
|
||||||
if (s.title == s.what) {
|
|
||||||
return `${s.dir} > <div class="search-details"> ${s.title}</div>`;
|
|
||||||
} else if (s.previous_headings == "") {
|
|
||||||
return `${s.dir} > <div class="search-details"> ${s.title}</div> > ${s.what}`;
|
|
||||||
} else {
|
|
||||||
return `${s.dir} > <div class="search-details"> ${s.title}</div> > ${s.previous_headings} > ${s.what}`;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
]).on('autocomplete:selected', function(event, s) {
|
|
||||||
window.location.href = s.path + "?q=" + q + "#" + s.id;
|
|
||||||
});
|
|
||||||
});
|
|
||||||
})(window.jQuery || window.$)
|
|
||||||
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
pandoc: 2.19.2
|
|
||||||
pkgdown: 2.0.7
|
|
||||||
pkgdown_sha: ~
|
|
||||||
articles:
|
|
||||||
Introduction: Introduction.html
|
|
||||||
last_built: 2023-06-07T12:06Z
|
|
||||||
|
|
@ -1,194 +0,0 @@
|
|||||||
<!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"><meta name="description" content="This will take output from a REDCap export and split it into a base table
|
|
||||||
and child tables for each repeating instrument. Metadata
|
|
||||||
is used to determine which fields should be included in each resultant table."><title>Split REDCap repeating instruments table into multiple tables — REDCap_split • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Split REDCap repeating instruments table into multiple tables — REDCap_split"><meta property="og:description" content="This will take output from a REDCap export and split it into a base table
|
|
||||||
and child tables for each repeating instrument. Metadata
|
|
||||||
is used to determine which fields should be included in each resultant table."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Split REDCap repeating instruments table into multiple tables</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/REDCap_split.r" class="external-link"><code>R/REDCap_split.r</code></a></small>
|
|
||||||
<div class="d-none name"><code>REDCap_split.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>This will take output from a REDCap export and split it into a base table
|
|
||||||
and child tables for each repeating instrument. Metadata
|
|
||||||
is used to determine which fields should be included in each resultant table.</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">REDCap_split</span><span class="op">(</span></span>
|
|
||||||
<span> <span class="va">records</span>,</span>
|
|
||||||
<span> <span class="va">metadata</span>,</span>
|
|
||||||
<span> primary_table_name <span class="op">=</span> <span class="st">""</span>,</span>
|
|
||||||
<span> forms <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"repeating"</span>, <span class="st">"all"</span><span class="op">)</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>records</dt>
|
|
||||||
<dd><p>Exported project records. May be a <code>data.frame</code>,
|
|
||||||
<code>response</code>, or <code>character</code> vector containing JSON from an API
|
|
||||||
call.</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>metadata</dt>
|
|
||||||
<dd><p>Project metadata (the data dictionary). May be a
|
|
||||||
<code>data.frame</code>, <code>response</code>, or <code>character</code> vector containing
|
|
||||||
JSON from an API call.</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>primary_table_name</dt>
|
|
||||||
<dd><p>Name given to the list element for the primary
|
|
||||||
output table (as described in <em>README.md</em>). Ignored if
|
|
||||||
<code>forms = 'all'</code>.</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>forms</dt>
|
|
||||||
<dd><p>Indicate whether to create separate tables for repeating
|
|
||||||
instruments only or for all forms.</p></dd>
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
<p>A list of <code>"data.frame"</code>s. The number of tables will differ
|
|
||||||
depending on the <code>forms</code> option selected.</p>
|
|
||||||
<p></p>
|
|
||||||
<ul><li><p><code>'repeating'</code>: one base table and one or more
|
|
||||||
tables for each repeating instrument.</p></li>
|
|
||||||
<li><p><code>'all'</code>: a data.frame for each instrument, regardless of
|
|
||||||
whether it is a repeating instrument or not.</p></li>
|
|
||||||
</ul></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="author">Author<a class="anchor" aria-label="anchor" href="#author"></a></h2>
|
|
||||||
<p>Paul W. Egeler, M.S., GStat</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="kw">if</span> <span class="op">(</span><span class="cn">FALSE</span><span class="op">)</span> <span class="op">{</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Using an API call -------------------------------------------------------</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va">RCurl</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Get the records</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">records</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/pkg/RCurl/man/postForm.html" class="external-link">postForm</a></span><span class="op">(</span></span></span>
|
|
||||||
<span class="r-in"><span> uri <span class="op">=</span> <span class="va">api_url</span>, <span class="co"># Supply your site-specific URI</span></span></span>
|
|
||||||
<span class="r-in"><span> token <span class="op">=</span> <span class="va">api_token</span>, <span class="co"># Supply your own API token</span></span></span>
|
|
||||||
<span class="r-in"><span> content <span class="op">=</span> <span class="st">'record'</span>,</span></span>
|
|
||||||
<span class="r-in"><span> format <span class="op">=</span> <span class="st">'json'</span>,</span></span>
|
|
||||||
<span class="r-in"><span> returnFormat <span class="op">=</span> <span class="st">'json'</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Get the metadata</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">metadata</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/pkg/RCurl/man/postForm.html" class="external-link">postForm</a></span><span class="op">(</span></span></span>
|
|
||||||
<span class="r-in"><span> uri <span class="op">=</span> <span class="va">api_url</span>, <span class="co"># Supply your site-specific URI</span></span></span>
|
|
||||||
<span class="r-in"><span> token <span class="op">=</span> <span class="va">api_token</span>, <span class="co"># Supply your own API token</span></span></span>
|
|
||||||
<span class="r-in"><span> content <span class="op">=</span> <span class="st">'metadata'</span>,</span></span>
|
|
||||||
<span class="r-in"><span> format <span class="op">=</span> <span class="st">'json'</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Convert exported JSON strings into a list of data.frames</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="fu">REDCapRITS</span><span class="fu">::</span><span class="fu">REDCap_split</span><span class="op">(</span><span class="va">records</span>, <span class="va">metadata</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Using a raw data export -------------------------------------------------</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Get the records</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">records</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/utils/read.table.html" class="external-link">read.csv</a></span><span class="op">(</span><span class="st">"/path/to/data/ExampleProject_DATA_2018-06-03_1700.csv"</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Get the metadata</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">metadata</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/utils/read.table.html" class="external-link">read.csv</a></span><span class="op">(</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="st">"/path/to/data/ExampleProject_DataDictionary_2018-06-03.csv"</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Split the tables</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="fu">REDCapRITS</span><span class="fu">::</span><span class="fu">REDCap_split</span><span class="op">(</span><span class="va">records</span>, <span class="va">metadata</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># In conjunction with the R export script ---------------------------------</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># You must set the working directory first since the REDCap data export</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># script contains relative file references.</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">old</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/getwd.html" class="external-link">getwd</a></span><span class="op">(</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/getwd.html" class="external-link">setwd</a></span><span class="op">(</span><span class="st">"/path/to/data/"</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Run the data export script supplied by REDCap.</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># This will create a data.frame of your records called 'data'</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="kw"><a href="https://rdrr.io/r/base/source.html" class="external-link">source</a></span><span class="op">(</span><span class="st">"ExampleProject_R_2018-06-03_1700.r"</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Get the metadatan</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">metadata</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/utils/read.table.html" class="external-link">read.csv</a></span><span class="op">(</span><span class="st">"ExampleProject_DataDictionary_2018-06-03.csv"</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Split the tables</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="fu">REDCapRITS</span><span class="fu">::</span><span class="fu">REDCap_split</span><span class="op">(</span><span class="va">data</span>, <span class="va">metadata</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/getwd.html" class="external-link">setwd</a></span><span class="op">(</span><span class="va">old</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
|
||||||
</code></pre></div>
|
|
||||||
</div>
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
Before Width: | Height: | Size: 1011 B |
@ -1,101 +0,0 @@
|
|||||||
<!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"><meta name="description" content="Stepwise removal on non-alphanumeric characters, trailing white space,
|
|
||||||
substitutes spaces for underscores and converts to lower case.
|
|
||||||
Trying to make up for different naming conventions."><title>clean_redcap_name — clean_redcap_name • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="clean_redcap_name — clean_redcap_name"><meta property="og:description" content="Stepwise removal on non-alphanumeric characters, trailing white space,
|
|
||||||
substitutes spaces for underscores and converts to lower case.
|
|
||||||
Trying to make up for different naming conventions."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>clean_redcap_name</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/utils.r" class="external-link"><code>R/utils.r</code></a></small>
|
|
||||||
<div class="d-none name"><code>clean_redcap_name.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>Stepwise removal on non-alphanumeric characters, trailing white space,
|
|
||||||
substitutes spaces for underscores and converts to lower case.
|
|
||||||
Trying to make up for different naming conventions.</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">clean_redcap_name</span><span class="op">(</span><span class="va">x</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>x</dt>
|
|
||||||
<dd><p>vector or data frame for cleaning</p></dd>
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
<p>vector or data frame, same format as input</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
Before Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 8.6 KiB |
@ -1,99 +0,0 @@
|
|||||||
<!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"><meta name="description" content="Extracts limited metadata for variables in a dataset"><title>focused_metadata — focused_metadata • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="focused_metadata — focused_metadata"><meta property="og:description" content="Extracts limited metadata for variables in a dataset"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>focused_metadata</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/utils.r" class="external-link"><code>R/utils.r</code></a></small>
|
|
||||||
<div class="d-none name"><code>focused_metadata.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>Extracts limited metadata for variables in a dataset</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">focused_metadata</span><span class="op">(</span><span class="va">metadata</span>, <span class="va">vars_in_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>metadata</dt>
|
|
||||||
<dd><p>A dataframe containing metadata</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>vars_in_data</dt>
|
|
||||||
<dd><p>Vector of variable names in the dataset</p></dd>
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
<p>A dataframe containing metadata for the variables in the dataset</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,132 +0,0 @@
|
|||||||
<!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>Function reference • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Function reference"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab fa fab fa-github fa-lg"></span>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul></div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav><div class="container template-reference-index">
|
|
||||||
<div class="row">
|
|
||||||
<main id="main" class="col-md-9"><div class="page-header">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Function reference</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="all-functions">All functions<a class="anchor" aria-label="anchor" href="#all-functions"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div><div id="" class="section level2">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<dl><dt>
|
|
||||||
|
|
||||||
<code><a href="REDCap_split.html">REDCap_split()</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>Split REDCap repeating instruments table into multiple tables</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="clean_redcap_name.html">clean_redcap_name()</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>clean_redcap_name</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="focused_metadata.html">focused_metadata()</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>focused_metadata</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="match_fields_to_form.html">match_fields_to_form()</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>Match fields to forms</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="read_redcap_tables.html">read_redcap_tables()</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>Download REDCap data</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="redcap_wider.html">redcap_wider()</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>Redcap Wider</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="redcapcast_data.html">redcapcast_data</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>Data set for demonstration</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="redcapcast_meta.html">redcapcast_meta</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>REDCap metadata from data base</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="sanitize_split.html">sanitize_split()</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>Sanitize list of data frames</dd>
|
|
||||||
</dl><dl><dt>
|
|
||||||
|
|
||||||
<code><a href="split_non_repeating_forms.html">split_non_repeating_forms()</a></code>
|
|
||||||
</dt>
|
|
||||||
<dd>Split a data frame into separate tables for each form</dd>
|
|
||||||
</dl></div>
|
|
||||||
</main></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,99 +0,0 @@
|
|||||||
<!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"><meta name="description" content="Match fields to forms"><title>Match fields to forms — match_fields_to_form • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Match fields to forms — match_fields_to_form"><meta property="og:description" content="Match fields to forms"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Match fields to forms</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/utils.r" class="external-link"><code>R/utils.r</code></a></small>
|
|
||||||
<div class="d-none name"><code>match_fields_to_form.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>Match fields to forms</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">match_fields_to_form</span><span class="op">(</span><span class="va">metadata</span>, <span class="va">vars_in_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>metadata</dt>
|
|
||||||
<dd><p>A data frame containing field names and form names</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>vars_in_data</dt>
|
|
||||||
<dd><p>A character vector of variable names</p></dd>
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
<p>A data frame containing field names and form names</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,155 +0,0 @@
|
|||||||
<!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"><meta name="description" content="Implementation of REDCap_split with a focused data acquisition approach using
|
|
||||||
REDCapR::redcap_read nad only downloading specified fields, forms and/or
|
|
||||||
events using the built-in focused_metadata including some clean-up.
|
|
||||||
Works with longitudinal projects with repeating instruments."><title>Download REDCap data — read_redcap_tables • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Download REDCap data — read_redcap_tables"><meta property="og:description" content="Implementation of REDCap_split with a focused data acquisition approach using
|
|
||||||
REDCapR::redcap_read nad only downloading specified fields, forms and/or
|
|
||||||
events using the built-in focused_metadata including some clean-up.
|
|
||||||
Works with longitudinal projects with repeating instruments."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Download REDCap data</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/read_redcap_tables.R" class="external-link"><code>R/read_redcap_tables.R</code></a></small>
|
|
||||||
<div class="d-none name"><code>read_redcap_tables.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>Implementation of REDCap_split with a focused data acquisition approach using
|
|
||||||
REDCapR::redcap_read nad only downloading specified fields, forms and/or
|
|
||||||
events using the built-in focused_metadata including some clean-up.
|
|
||||||
Works with longitudinal projects with repeating instruments.</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">read_redcap_tables</span><span class="op">(</span></span>
|
|
||||||
<span> <span class="va">uri</span>,</span>
|
|
||||||
<span> <span class="va">token</span>,</span>
|
|
||||||
<span> records <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
|
||||||
<span> fields <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
|
||||||
<span> events <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
|
||||||
<span> forms <span class="op">=</span> <span class="cn">NULL</span>,</span>
|
|
||||||
<span> raw_or_label <span class="op">=</span> <span class="st">"label"</span>,</span>
|
|
||||||
<span> split_forms <span class="op">=</span> <span class="st">"all"</span>,</span>
|
|
||||||
<span> generics <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"record_id"</span>, <span class="st">"redcap_event_name"</span>, <span class="st">"redcap_repeat_instrument"</span>,</span>
|
|
||||||
<span> <span class="st">"redcap_repeat_instance"</span><span class="op">)</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>uri</dt>
|
|
||||||
<dd><p>REDCap database uri</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>token</dt>
|
|
||||||
<dd><p>API token</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>records</dt>
|
|
||||||
<dd><p>records to download</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>fields</dt>
|
|
||||||
<dd><p>fields to download</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>events</dt>
|
|
||||||
<dd><p>events to download</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>forms</dt>
|
|
||||||
<dd><p>forms to download</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>raw_or_label</dt>
|
|
||||||
<dd><p>raw or label tags</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>split_forms</dt>
|
|
||||||
<dd><p>Whether to split "repeating" or "all" forms, default is
|
|
||||||
all.</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>generics</dt>
|
|
||||||
<dd><p>vector of auto-generated generic variable names to
|
|
||||||
ignore when discarding empty rows</p></dd>
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
<p>list of instruments</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="co"># Examples will be provided later</span></span></span>
|
|
||||||
<span class="r-in"></span>
|
|
||||||
</code></pre></div>
|
|
||||||
</div>
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,125 +0,0 @@
|
|||||||
<!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"><meta name="description" content="Converts a list of REDCap data frames from long to wide format.
|
|
||||||
Handles longitudinal projects, but not yet repeated instruments."><title>Redcap Wider — redcap_wider • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Redcap Wider — redcap_wider"><meta property="og:description" content="Converts a list of REDCap data frames from long to wide format.
|
|
||||||
Handles longitudinal projects, but not yet repeated instruments."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Redcap Wider</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/redcap_wider.R" class="external-link"><code>R/redcap_wider.R</code></a></small>
|
|
||||||
<div class="d-none name"><code>redcap_wider.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>Converts a list of REDCap data frames from long to wide format.
|
|
||||||
Handles longitudinal projects, but not yet repeated instruments.</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">redcap_wider</span><span class="op">(</span></span>
|
|
||||||
<span> <span class="va">list</span>,</span>
|
|
||||||
<span> event.glue <span class="op">=</span> <span class="st">"{.value}_{redcap_event_name}"</span>,</span>
|
|
||||||
<span> inst.glue <span class="op">=</span> <span class="st">"{.value}_{redcap_repeat_instance}"</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>list</dt>
|
|
||||||
<dd><p>A list of data frames.</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>event.glue</dt>
|
|
||||||
<dd><p>A dplyr::glue string for repeated events naming</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>inst.glue</dt>
|
|
||||||
<dd><p>A dplyr::glue string for repeated instruments naming</p></dd>
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
<p>The list of data frames in wide format.</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">list</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/list.html" class="external-link">list</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span>,<span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span>redcap_event_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"baseline"</span>, <span class="st">"baseline"</span>, <span class="st">"followup"</span>, <span class="st">"followup"</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span>age <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">25</span>,<span class="fl">26</span>,<span class="fl">27</span>,<span class="fl">28</span><span class="op">)</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span>record_id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>,<span class="fl">2</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span>redcap_event_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"baseline"</span>, <span class="st">"baseline"</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span>gender <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"male"</span>, <span class="st">"female"</span><span class="op">)</span><span class="op">)</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="fu">redcap_wider</span><span class="op">(</span><span class="va">list</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-msg co"><span class="r-pr">#></span> Joining with `by = join_by(record_id)`</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> record_id age_baseline age_followup gender</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> 1 1 25 27 male</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> 2 2 26 28 female</span>
|
|
||||||
</code></pre></div>
|
|
||||||
</div>
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,157 +0,0 @@
|
|||||||
<!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"><meta name="description" content="This is a small dataset from a REDCap database for demonstrational purposes.
|
|
||||||
Contains only synthetic data."><title>Data set for demonstration — redcapcast_data • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Data set for demonstration — redcapcast_data"><meta property="og:description" content="This is a small dataset from a REDCap database for demonstrational purposes.
|
|
||||||
Contains only synthetic data."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Data set for demonstration</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/redcapcast_data.R" class="external-link"><code>R/redcapcast_data.R</code></a></small>
|
|
||||||
<div class="d-none name"><code>redcapcast_data.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>This is a small dataset from a REDCap database for demonstrational purposes.
|
|
||||||
Contains only synthetic data.</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"><a href="https://rdrr.io/r/utils/data.html" class="external-link">data</a></span><span class="op">(</span><span class="va">redcapcast_data</span><span class="op">)</span></span></code></pre></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="format">Format<a class="anchor" aria-label="anchor" href="#format"></a></h2>
|
|
||||||
<p>A data frame with 22 variables:</p><dl><dt>record_id</dt>
|
|
||||||
<dd><p>ID, numeric</p></dd>
|
|
||||||
|
|
||||||
<dt>redcap_event_name</dt>
|
|
||||||
<dd><p>Event name, character</p></dd>
|
|
||||||
|
|
||||||
<dt>redcap_repeat_instrument</dt>
|
|
||||||
<dd><p>Repeat instrument, character</p></dd>
|
|
||||||
|
|
||||||
<dt>redcap_repeat_instance</dt>
|
|
||||||
<dd><p>Repeat instance, numeric</p></dd>
|
|
||||||
|
|
||||||
<dt>cpr</dt>
|
|
||||||
<dd><p>CPR number, character</p></dd>
|
|
||||||
|
|
||||||
<dt>inclusion</dt>
|
|
||||||
<dd><p>Inclusion date, date</p></dd>
|
|
||||||
|
|
||||||
<dt>dob</dt>
|
|
||||||
<dd><p>Date of birth, date</p></dd>
|
|
||||||
|
|
||||||
<dt>age</dt>
|
|
||||||
<dd><p>Age decimal, numeric</p></dd>
|
|
||||||
|
|
||||||
<dt>age_integer</dt>
|
|
||||||
<dd><p>Age integer, numeric</p></dd>
|
|
||||||
|
|
||||||
<dt>sex</dt>
|
|
||||||
<dd><p>Legal sex, character</p></dd>
|
|
||||||
|
|
||||||
<dt>cohabitation</dt>
|
|
||||||
<dd><p>Cohabitation status, character</p></dd>
|
|
||||||
|
|
||||||
<dt>hypertension</dt>
|
|
||||||
<dd><p>Hypertension, character</p></dd>
|
|
||||||
|
|
||||||
<dt>diabetes</dt>
|
|
||||||
<dd><p>diabetes, character</p></dd>
|
|
||||||
|
|
||||||
<dt>region</dt>
|
|
||||||
<dd><p>region, character</p></dd>
|
|
||||||
|
|
||||||
<dt>baseline_data_start_complete</dt>
|
|
||||||
<dd><p>Completed, character</p></dd>
|
|
||||||
|
|
||||||
<dt>mrs_assessed</dt>
|
|
||||||
<dd><p>mRS Assessed, character</p></dd>
|
|
||||||
|
|
||||||
<dt>mrs_date</dt>
|
|
||||||
<dd><p>Assesment date, date</p></dd>
|
|
||||||
|
|
||||||
<dt>mrs_score</dt>
|
|
||||||
<dd><p>Score, numeric</p></dd>
|
|
||||||
|
|
||||||
<dt>mrs_complete</dt>
|
|
||||||
<dd><p>Complete, numeric</p></dd>
|
|
||||||
|
|
||||||
<dt>event_date</dt>
|
|
||||||
<dd><p>Event date, date</p></dd>
|
|
||||||
|
|
||||||
<dt>event_type</dt>
|
|
||||||
<dd><p>Event type, character</p></dd>
|
|
||||||
|
|
||||||
<dt>new_event_complete</dt>
|
|
||||||
<dd><p>Completed, character</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,141 +0,0 @@
|
|||||||
<!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"><meta name="description" content="This metadata dataset from a REDCap database is for demonstrational purposes."><title>REDCap metadata from data base — redcapcast_meta • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="REDCap metadata from data base — redcapcast_meta"><meta property="og:description" content="This metadata dataset from a REDCap database is for demonstrational purposes."><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>REDCap metadata from data base</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/redcapcast_meta.R" class="external-link"><code>R/redcapcast_meta.R</code></a></small>
|
|
||||||
<div class="d-none name"><code>redcapcast_meta.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>This metadata dataset from a REDCap database is for demonstrational purposes.</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"><a href="https://rdrr.io/r/utils/data.html" class="external-link">data</a></span><span class="op">(</span><span class="va">redcapcast_meta</span><span class="op">)</span></span></code></pre></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="format">Format<a class="anchor" aria-label="anchor" href="#format"></a></h2>
|
|
||||||
<p>A data frame with 22 variables:</p><dl><dt>field_name</dt>
|
|
||||||
<dd><p>field_name, character</p></dd>
|
|
||||||
|
|
||||||
<dt>form_name</dt>
|
|
||||||
<dd><p>form_name, character</p></dd>
|
|
||||||
|
|
||||||
<dt>section_header</dt>
|
|
||||||
<dd><p>section_header, character</p></dd>
|
|
||||||
|
|
||||||
<dt>field_type</dt>
|
|
||||||
<dd><p>field_type, character</p></dd>
|
|
||||||
|
|
||||||
<dt>field_label</dt>
|
|
||||||
<dd><p>field_label, character</p></dd>
|
|
||||||
|
|
||||||
<dt>select_choices_or_calculations</dt>
|
|
||||||
<dd><p>select_choices_or_calculations, character</p></dd>
|
|
||||||
|
|
||||||
<dt>field_note</dt>
|
|
||||||
<dd><p>field_note, character</p></dd>
|
|
||||||
|
|
||||||
<dt>text_validation_type_or_show_slider_number</dt>
|
|
||||||
<dd><p>text_validation_type_or_show_slider_number, character</p></dd>
|
|
||||||
|
|
||||||
<dt>text_validation_min</dt>
|
|
||||||
<dd><p>text_validation_min, character</p></dd>
|
|
||||||
|
|
||||||
<dt>text_validation_max</dt>
|
|
||||||
<dd><p>text_validation_max, character</p></dd>
|
|
||||||
|
|
||||||
<dt>identifier</dt>
|
|
||||||
<dd><p>identifier, character</p></dd>
|
|
||||||
|
|
||||||
<dt>branching_logic</dt>
|
|
||||||
<dd><p>branching_logic, character</p></dd>
|
|
||||||
|
|
||||||
<dt>required_field</dt>
|
|
||||||
<dd><p>required_field, character</p></dd>
|
|
||||||
|
|
||||||
<dt>custom_alignment</dt>
|
|
||||||
<dd><p>custom_alignment, character</p></dd>
|
|
||||||
|
|
||||||
<dt>question_number</dt>
|
|
||||||
<dd><p>question_number, character</p></dd>
|
|
||||||
|
|
||||||
<dt>matrix_group_name</dt>
|
|
||||||
<dd><p>matrix_group_name, character</p></dd>
|
|
||||||
|
|
||||||
<dt>matrix_ranking</dt>
|
|
||||||
<dd><p>matrix_ranking, character</p></dd>
|
|
||||||
|
|
||||||
<dt>field_annotation</dt>
|
|
||||||
<dd><p>field_annotation, character</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,103 +0,0 @@
|
|||||||
<!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"><meta name="description" content="Removing empty rows"><title>Sanitize list of data frames — sanitize_split • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Sanitize list of data frames — sanitize_split"><meta property="og:description" content="Removing empty rows"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Sanitize list of data frames</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/utils.r" class="external-link"><code>R/utils.r</code></a></small>
|
|
||||||
<div class="d-none name"><code>sanitize_split.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>Removing empty rows</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">sanitize_split</span><span class="op">(</span></span>
|
|
||||||
<span> <span class="va">l</span>,</span>
|
|
||||||
<span> generic.names <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"record_id"</span>, <span class="st">"redcap_event_name"</span>, <span class="st">"redcap_repeat_instrument"</span>,</span>
|
|
||||||
<span> <span class="st">"redcap_repeat_instance"</span><span class="op">)</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>l</dt>
|
|
||||||
<dd><p>A list of data frames.</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>generic.names</dt>
|
|
||||||
<dd><p>A vector of generic names to be excluded.</p></dd>
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
<p>A list of data frames with generic names excluded.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,140 +0,0 @@
|
|||||||
<!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"><meta name="description" content="Split a data frame into separate tables for each form"><title>Split a data frame into separate tables for each form — split_non_repeating_forms • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><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.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Split a data frame into separate tables for each form — split_non_repeating_forms"><meta property="og:description" content="Split a data frame into separate tables for each form"><meta property="og:image" content="/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]--></head><body>
|
|
||||||
<a href="#main" class="visually-hidden-focusable">Skip to contents</a>
|
|
||||||
|
|
||||||
|
|
||||||
<nav class="navbar fixed-top navbar-light navbar-expand-lg bg-light"><div class="container">
|
|
||||||
|
|
||||||
<a class="navbar-brand me-2" href="../index.html">REDCapCAST</a>
|
|
||||||
|
|
||||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">23.6.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 dropdown">
|
|
||||||
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-articles">Articles</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdown-articles">
|
|
||||||
<a class="dropdown-item" href="../articles/Introduction.html">Introduction</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="../news/index.html">Changelog</a>
|
|
||||||
</li>
|
|
||||||
</ul><form class="form-inline my-2 my-lg-0" role="search">
|
|
||||||
<input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form>
|
|
||||||
|
|
||||||
<ul class="navbar-nav"><li class="nav-item">
|
|
||||||
<a class="external-link nav-link" href="https://github.com/agdamsbo/REDCapCAST/" aria-label="github">
|
|
||||||
<span class="fab 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">
|
|
||||||
<img src="../logo.png" class="logo" alt=""><h1>Split a data frame into separate tables for each form</h1>
|
|
||||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/HEAD/R/utils.r" class="external-link"><code>R/utils.r</code></a></small>
|
|
||||||
<div class="d-none name"><code>split_non_repeating_forms.Rd</code></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="ref-description section level2">
|
|
||||||
<p>Split a data frame into separate tables for each form</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">split_non_repeating_forms</span><span class="op">(</span><span class="va">table</span>, <span class="va">universal_fields</span>, <span class="va">fields</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>table</dt>
|
|
||||||
<dd><p>A data frame</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>universal_fields</dt>
|
|
||||||
<dd><p>A character vector of fields that should be included
|
|
||||||
in every table</p></dd>
|
|
||||||
|
|
||||||
|
|
||||||
<dt>fields</dt>
|
|
||||||
<dd><p>A two-column matrix containing the names of fields that should
|
|
||||||
be included in each form</p></dd>
|
|
||||||
|
|
||||||
</dl></div>
|
|
||||||
<div class="section level2">
|
|
||||||
<h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
|
|
||||||
|
|
||||||
|
|
||||||
<p>A list of data frames, one for each non-repeating form</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="co"># Create a table</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">table</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span></span></span>
|
|
||||||
<span class="r-in"><span> id <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">1</span>, <span class="fl">2</span>, <span class="fl">3</span>, <span class="fl">4</span>, <span class="fl">5</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span> form_a_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"John"</span>, <span class="st">"Alice"</span>, <span class="st">"Bob"</span>, <span class="st">"Eve"</span>, <span class="st">"Mallory"</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span> form_a_age <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">25</span>, <span class="fl">30</span>, <span class="fl">25</span>, <span class="fl">15</span>, <span class="fl">20</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span> form_b_name <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"John"</span>, <span class="st">"Alice"</span>, <span class="st">"Bob"</span>, <span class="st">"Eve"</span>, <span class="st">"Mallory"</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span> form_b_gender <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"M"</span>, <span class="st">"F"</span>, <span class="st">"M"</span>, <span class="st">"F"</span>, <span class="st">"F"</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Create the universal fields</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">universal_fields</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"id"</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Create the fields</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="va">fields</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/matrix.html" class="external-link">matrix</a></span><span class="op">(</span></span></span>
|
|
||||||
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"form_a_name"</span>, <span class="st">"form_a"</span>,</span></span>
|
|
||||||
<span class="r-in"><span> <span class="st">"form_a_age"</span>, <span class="st">"form_a"</span>,</span></span>
|
|
||||||
<span class="r-in"><span> <span class="st">"form_b_name"</span>, <span class="st">"form_b"</span>,</span></span>
|
|
||||||
<span class="r-in"><span> <span class="st">"form_b_gender"</span>, <span class="st">"form_b"</span><span class="op">)</span>,</span></span>
|
|
||||||
<span class="r-in"><span> ncol <span class="op">=</span> <span class="fl">2</span>, byrow <span class="op">=</span> <span class="cn">TRUE</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-in"><span></span></span>
|
|
||||||
<span class="r-in"><span><span class="co"># Split the table</span></span></span>
|
|
||||||
<span class="r-in"><span><span class="fu">split_non_repeating_forms</span><span class="op">(</span><span class="va">table</span>, <span class="va">universal_fields</span>, <span class="va">fields</span><span class="op">)</span></span></span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> $form_a_age</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> id</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> 1 1</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> 2 2</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> 3 3</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> 4 4</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> 5 5</span>
|
|
||||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
|
||||||
</code></pre></div>
|
|
||||||
</div>
|
|
||||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
|
||||||
</nav></aside></div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer><div class="pkgdown-footer-left">
|
|
||||||
<p></p><p>Developed by Andreas Gammelgaard Damsbo, Paul Egeler.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pkgdown-footer-right">
|
|
||||||
<p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</footer></div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body></html>
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
||||||
<url>
|
|
||||||
<loc>/404.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/LICENSE.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/articles/Introduction.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/articles/index.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/authors.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/index.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/news/index.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/REDCap_split.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/clean_redcap_name.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/focused_metadata.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/index.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/match_fields_to_form.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/read_redcap_tables.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/redcap_wider.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/redcapcast_data.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/redcapcast_meta.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/sanitize_split.html</loc>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>/reference/split_non_repeating_forms.html</loc>
|
|
||||||
</url>
|
|
||||||
</urlset>
|
|