mirror of
https://github.com/agdamsbo/REDCapCAST.git
synced 2026-06-19 13:17:30 +02:00
Deploying to gh-pages from @ agdamsbo/REDCapCAST@ce6bda19bb 🚀
This commit is contained in:
parent
75d348fedb
commit
27a17149cb
15 changed files with 36 additions and 20 deletions
|
|
@ -71,6 +71,8 @@ Trying to make up for different naming conventions.</p>
|
|||
<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="st">"Research!, ne:ws? and c;l-.ls"</span> <span class="op">|></span> <span class="fu">clean_redcap_name</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "research_news_and_clls"</span>
|
||||
<span class="r-in"><span><span class="st">"8_new_TEST_"</span> <span class="op">|></span> <span class="fu">clean_redcap_name</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "8_new_test"</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
|
||||
|
|
|
|||
|
|
@ -25,4 +25,6 @@ vector or data frame, same format as input
|
|||
``` r
|
||||
"Research!, ne:ws? and c;l-.ls" |> clean_redcap_name()
|
||||
#> [1] "research_news_and_clls"
|
||||
"8_new_TEST_" |> clean_redcap_name()
|
||||
#> [1] "8_new_test"
|
||||
```
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en-US"><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>DEPRICATED Create zips file with necessary content based on data set — create_instrument_meta • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="DEPRICATED Create zips file with necessary content based on data set — create_instrument_meta"><meta name="description" content="Metadata can be added by editing the data dictionary of a project in the
|
||||
<!-- Generated by pkgdown: do not edit by hand --><html lang="en-US"><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>DEPRECATED Create zips file with necessary content based on data set — create_instrument_meta • REDCapCAST</title><!-- favicons --><link rel="icon" type="image/png" sizes="96x96" href="../favicon-96x96.png"><link rel="icon" type="”image/svg+xml”" href="../favicon.svg"><link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png"><link rel="icon" sizes="any" href="../favicon.ico"><link rel="manifest" href="../site.webmanifest"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="DEPRECATED Create zips file with necessary content based on data set — create_instrument_meta"><meta name="description" content="Use export_redcap_instrument()
|
||||
Metadata can be added by editing the data dictionary of a project in the
|
||||
initial design phase. If you want to later add new instruments, this
|
||||
function can be used to create (an) instrument(s) to add to a project in
|
||||
production."><meta property="og:description" content="Metadata can be added by editing the data dictionary of a project in the
|
||||
production."><meta property="og:description" content="Use export_redcap_instrument()
|
||||
Metadata can be added by editing the data dictionary of a project in the
|
||||
initial design phase. If you want to later add new instruments, this
|
||||
function can be used to create (an) instrument(s) to add to a project in
|
||||
production."></head><body>
|
||||
|
|
@ -40,13 +42,14 @@ production."></head><body>
|
|||
<div class="row">
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
|
||||
<h1>DEPRICATED Create zips file with necessary content based on data set</h1>
|
||||
<h1>DEPRECATED Create zips file with necessary content based on data set</h1>
|
||||
<small class="dont-index">Source: <a href="https://github.com/agdamsbo/REDCapCAST/blob/main/R/export_redcap_instrument.R" class="external-link"><code>R/export_redcap_instrument.R</code></a></small>
|
||||
<div class="d-none name"><code>create_instrument_meta.Rd</code></div>
|
||||
</div>
|
||||
|
||||
<div class="ref-description section level2">
|
||||
<p>Metadata can be added by editing the data dictionary of a project in the
|
||||
<p>Use export_redcap_instrument()
|
||||
Metadata can be added by editing the data dictionary of a project in the
|
||||
initial design phase. If you want to later add new instruments, this
|
||||
function can be used to create (an) instrument(s) to add to a project in
|
||||
production.</p>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# DEPRICATED Create zips file with necessary content based on data set
|
||||
# DEPRECATED Create zips file with necessary content based on data set
|
||||
|
||||
Metadata can be added by editing the data dictionary of a project in the
|
||||
initial design phase. If you want to later add new instruments, this
|
||||
function can be used to create (an) instrument(s) to add to a project in
|
||||
production.
|
||||
Use export_redcap_instrument() Metadata can be added by editing the data
|
||||
dictionary of a project in the initial design phase. If you want to
|
||||
later add new instruments, this function can be used to create (an)
|
||||
instrument(s) to add to a project in production.
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
<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="st">"length"</span> <span class="op">|></span> <span class="fu">cut_string_length</span><span class="op">(</span>l<span class="op">=</span><span class="fl">3</span><span class="op">)</span></span></span>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="st">"length"</span> <span class="op">|></span> <span class="fu">cut_string_length</span><span class="op">(</span>l <span class="op">=</span> <span class="fl">3</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "len"</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,6 @@ character string of length l
|
|||
## Examples
|
||||
|
||||
``` r
|
||||
"length" |> cut_string_length(l=3)
|
||||
"length" |> cut_string_length(l = 3)
|
||||
#> [1] "len"
|
||||
```
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@
|
|||
<code><a href="create_instrument_meta.html">create_instrument_meta()</a></code>
|
||||
|
||||
</dt>
|
||||
<dd>DEPRICATED Create zips file with necessary content based on data set</dd>
|
||||
<dd>DEPRECATED Create zips file with necessary content based on data set</dd>
|
||||
|
||||
<dt>
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
- [`create_html_table()`](https://agdamsbo.github.io/REDCapCAST/reference/create_html_table.md)
|
||||
: Create two-column HTML table for data piping in REDCap instruments
|
||||
- [`create_instrument_meta()`](https://agdamsbo.github.io/REDCapCAST/reference/create_instrument_meta.md)
|
||||
: DEPRICATED Create zips file with necessary content based on data set
|
||||
: DEPRECATED Create zips file with necessary content based on data set
|
||||
- [`cut_string_length()`](https://agdamsbo.github.io/REDCapCAST/reference/cut_string_length.md)
|
||||
: Cut string to desired length
|
||||
- [`d2w()`](https://agdamsbo.github.io/REDCapCAST/reference/d2w.md) :
|
||||
|
|
|
|||
|
|
@ -82,8 +82,10 @@ easing the split around the defined delimiter, see example.</p>
|
|||
|
||||
<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">test</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">"12 months follow-up"</span>, <span class="st">"3 steps"</span>, <span class="st">"mRS 6 weeks"</span>,</span></span>
|
||||
<span class="r-in"><span><span class="st">"Counting to 231 now"</span><span class="op">)</span></span></span>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">test</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></span>
|
||||
<span class="r-in"><span> <span class="st">"12 months follow-up"</span>, <span class="st">"3 steps"</span>, <span class="st">"mRS 6 weeks"</span>,</span></span>
|
||||
<span class="r-in"><span> <span class="st">"Counting to 231 now"</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">strsplitx</span><span class="op">(</span><span class="va">test</span>, <span class="st">"[0-9]"</span>, type <span class="op">=</span> <span class="st">"around"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [[1]]</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "1" "2" " months follow-up"</span>
|
||||
|
|
|
|||
|
|
@ -38,8 +38,10 @@ list
|
|||
## Examples
|
||||
|
||||
``` r
|
||||
test <- c("12 months follow-up", "3 steps", "mRS 6 weeks",
|
||||
"Counting to 231 now")
|
||||
test <- c(
|
||||
"12 months follow-up", "3 steps", "mRS 6 weeks",
|
||||
"Counting to 231 now"
|
||||
)
|
||||
strsplitx(test, "[0-9]", type = "around")
|
||||
#> [[1]]
|
||||
#> [1] "1" "2" " months follow-up"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue