Commit 2e29bd8e authored by Gjalt-Jorn Peters's avatar Gjalt-Jorn Peters

improvided gitlab loading function

parent f66d0b27
Pipeline #211350965 passed with stage
in 5 minutes and 53 seconds
Package: ufs
Type: Package
Title: Quantitative Analysis Made Accessible
Version: 0.3.3
Version: 0.4.0
Authors@R:
c(
person(given = "Gjalt-Jorn",
......@@ -44,8 +44,9 @@ Suggests:
MBESS (>= 4.5.1),
psych (>= 1.8),
rio (>= 0.5),
rmarkdown,
rstudioapi
remotes (>= 0.2),
rmarkdown (>= 2.5),
rstudioapi (>= 0.11)
Imports: digest (>= 0.6.19),
diptest (>= 0.75.7),
dplyr (>= 0.7.6),
......
......@@ -24,7 +24,7 @@ quietRemotesInstall <- function(x,
errorInvisible = TRUE,
...) {
if (!requireNamespace("remotes")) {
if (!requireNamespace("remotes", quietly = TRUE)) {
stop("This is a wrapper for `remotes` functions; ",
"you need to have `remotes` installed to use it.");
}
......
......@@ -71,7 +71,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -142,7 +142,7 @@ Content not found. Please use links in the navbar.
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
......@@ -31,7 +31,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -83,7 +83,7 @@
<h1 data-toc-skip>Conceptual Independence Matrix</h1>
<h4 class="author">Gjalt-Jorn Peters</h4>
<h4 class="date">2020-10-31</h4>
<h4 class="date">2020-11-03</h4>
<small class="dont-index">Source: <a href="https://gitlab.com/r-packages/ufs/blob/master/vignettes/conceptual-independence-matrix.Rmd"><code>vignettes/conceptual-independence-matrix.Rmd</code></a></small>
<div class="hidden name"><code>conceptual-independence-matrix.Rmd</code></div>
......@@ -92,28 +92,29 @@
<div class="sourceCode" id="cb1"><html><body><pre class="r">
<div class="sourceCode" id="cb1"><pre class="downlit">
<span class="co">### Load data from psych package</span>
<span class="fu"><a href="https://rdrr.io/r/utils/data.html">data</a></span>(<span class="no">bfi</span>, <span class="kw">package</span><span class="kw">=</span> <span class="st">'psych'</span>);
<span class="fu"><a href="https://rdrr.io/r/utils/data.html">data</a></span><span class="op">(</span><span class="va">bfi</span>, package<span class="op">=</span> <span class="st">'psych'</span><span class="op">)</span>;
<span class="co">### Specify scales</span>
<span class="no">bfiScales</span> <span class="kw">&lt;-</span>
<span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="kw">Agreeableness</span> <span class="kw">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span>(<span class="st">"Agreeableness_item_"</span>, <span class="fl">1</span>:<span class="fl">5</span>),
<span class="kw">Conscientiousness</span> <span class="kw">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span>(<span class="st">"Conscientiousness_item_"</span>, <span class="fl">1</span>:<span class="fl">5</span>),
<span class="kw">Extraversion</span> <span class="kw">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span>(<span class="st">"Extraversion_item_"</span>, <span class="fl">1</span>:<span class="fl">5</span>),
<span class="kw">Neuroticism</span> <span class="kw">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span>(<span class="st">"Neuroticism_item_"</span>, <span class="fl">1</span>:<span class="fl">5</span>),
<span class="kw">Openness</span> <span class="kw">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span>(<span class="st">"Openness_item_"</span>, <span class="fl">1</span>:<span class="fl">5</span>));
<span class="va">bfiScales</span> <span class="op">&lt;-</span>
<span class="fu"><a href="https://rdrr.io/r/base/list.html">list</a></span><span class="op">(</span>Agreeableness <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span><span class="op">(</span><span class="st">"Agreeableness_item_"</span>, <span class="fl">1</span><span class="op">:</span><span class="fl">5</span><span class="op">)</span>,
Conscientiousness <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span><span class="op">(</span><span class="st">"Conscientiousness_item_"</span>, <span class="fl">1</span><span class="op">:</span><span class="fl">5</span><span class="op">)</span>,
Extraversion <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span><span class="op">(</span><span class="st">"Extraversion_item_"</span>, <span class="fl">1</span><span class="op">:</span><span class="fl">5</span><span class="op">)</span>,
Neuroticism <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span><span class="op">(</span><span class="st">"Neuroticism_item_"</span>, <span class="fl">1</span><span class="op">:</span><span class="fl">5</span><span class="op">)</span>,
Openness <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/paste.html">paste0</a></span><span class="op">(</span><span class="st">"Openness_item_"</span>, <span class="fl">1</span><span class="op">:</span><span class="fl">5</span><span class="op">)</span><span class="op">)</span>;
<span class="fu"><a href="https://rdrr.io/r/base/names.html">names</a></span>(<span class="no">bfi</span>) <span class="kw">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span>(<span class="fu"><a href="https://rdrr.io/r/base/unlist.html">unlist</a></span>(<span class="no">bfiScales</span>),
<span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span>(<span class="st">'gender'</span>, <span class="st">'education'</span>, <span class="st">'age'</span>));
<span class="fu"><a href="https://rdrr.io/r/base/names.html">names</a></span><span class="op">(</span><span class="va">bfi</span><span class="op">)</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/unlist.html">unlist</a></span><span class="op">(</span><span class="va">bfiScales</span><span class="op">)</span>,
<span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span><span class="op">(</span><span class="st">'gender'</span>, <span class="st">'education'</span>, <span class="st">'age'</span><span class="op">)</span><span class="op">)</span>;
<span class="co">### Only select first two and the first three items to</span>
<span class="co">### keep it quick; just pass the full 'bfiScales'</span>
<span class="co">### object to run for all five the full scales</span>
<span class="kw pkg">ufs</span><span class="kw ns">::</span><span class="fu"><a href="../reference/CIM.html">CIM</a></span>(<span class="no">bfi</span>,
<span class="kw">scales</span><span class="kw">=</span><span class="fu"><a href="https://rdrr.io/r/base/lapply.html">lapply</a></span>(<span class="no">bfiScales</span>, <span class="no">head</span>, <span class="fl">3</span>)[<span class="fl">1</span>:<span class="fl">2</span>],
<span class="kw">n.iter</span><span class="kw">=</span><span class="fl">10</span>);
<span class="co">#&gt; Loading required namespace: GPArotation</span></pre></body></html></div>
<span class="fu">ufs</span><span class="fu">::</span><span class="fu"><a href="../reference/CIM.html">CIM</a></span><span class="op">(</span><span class="va">bfi</span>,
scales<span class="op">=</span><span class="fu"><a href="https://rdrr.io/r/base/lapply.html">lapply</a></span><span class="op">(</span><span class="va">bfiScales</span>, <span class="va">head</span>, <span class="fl">3</span><span class="op">)</span><span class="op">[</span><span class="fl">1</span><span class="op">:</span><span class="fl">2</span><span class="op">]</span>,
n.iter<span class="op">=</span><span class="fl">10</span><span class="op">)</span>;
<span class="co">#&gt; Loading required namespace: GPArotation</span></pre></div>
<hr>
<div class="conceptual-independence-matrix-start" style="display:block;clear:both;">
......@@ -172,7 +173,7 @@
<h3 class="hasAnchor">
<a href="#conceptual-independence-of-agreeableness-and-conscientiousness" class="anchor"></a>Conceptual (in)dependence of Agreeableness and Conscientiousness</h3>
<div class="figure">
<img src="conceptual-independence-matrix_files/figure-html/1bba497af7_b1d3f2d4b4b2a944dc14bbfcaffa090a-1.png" alt="Factor loadings for Agreeableness and Conscientiousness" width="1344"><p class="caption">
<img src="conceptual-independence-matrix_files/figure-html/1f692a2516_996508eb54fd6797b0c676d3770b67d2-1.png" alt="Factor loadings for Agreeableness and Conscientiousness" width="1344"><p class="caption">
Factor loadings for Agreeableness and Conscientiousness
</p>
</div>
......@@ -203,7 +204,7 @@ Factor loadings for Agreeableness and Conscientiousness
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
......@@ -71,7 +71,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -141,7 +141,7 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
......@@ -71,7 +71,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -145,7 +145,7 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
......@@ -42,7 +42,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -100,9 +100,11 @@
<h2 class="hasAnchor">
<a href="#installation" class="anchor"></a>Installation</h2>
<p>You can install the released version of <code>ufs</code> from <a href="https://CRAN.R-project.org">CRAN</a> with:</p>
<div class="sourceCode" id="cb1"><pre class="r"><span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html">install.packages</a></span>(<span class="st">'ufs'</span>);</pre></div>
<div class="sourceCode" id="cb1"><pre class="downlit">
<span class="fu"><a href="https://rdrr.io/r/utils/install.packages.html">install.packages</a></span><span class="op">(</span><span class="st">'ufs'</span><span class="op">)</span>;</pre></div>
<p>You can install the development version of <code>ufs</code> from <a href="https://about.gitlab.com">GitLab</a> with:</p>
<div class="sourceCode" id="cb2"><pre class="r"><span class="kw pkg">remotes</span><span class="kw ns">::</span><span class="fu"><a href="https://remotes.r-lib.org/reference/install_gitlab.html">install_gitlab</a></span>(<span class="st">'r-packages/ufs'</span>);</pre></div>
<div class="sourceCode" id="cb2"><pre class="downlit">
<span class="fu">remotes</span><span class="fu">::</span><span class="fu"><a href="https://remotes.r-lib.org/reference/install_gitlab.html">install_gitlab</a></span><span class="op">(</span><span class="st">'r-packages/ufs'</span><span class="op">)</span>;</pre></div>
<p>(assuming you have <code>remotes</code> installed; otherwise, install that first using the <code><a href="https://rdrr.io/r/utils/install.packages.html">install.packages()</a></code> function)</p>
</div>
</div>
......@@ -154,7 +156,7 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
......@@ -244,14 +244,14 @@ nav[data-toggle='toc'] .nav .nav > .active:focus > a {
.ref-index th {font-weight: normal;}
.ref-index td {vertical-align: top;}
.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;}
.ref-arguments th, .ref-arguments td {vertical-align: top; min-width: 100px}
.ref-arguments .name {width: 20%;}
.ref-arguments .desc {width: 80%;}
......
pandoc: 2.9.2.1
pkgdown: 1.5.1
pkgdown: 1.6.1
pkgdown_sha: ~
articles:
conceptual-independence-matrix: ../../../../../../B:/Data/R/ufs/vignettes/conceptual-independence-matrix.html
last_built: 2020-10-31T10:06Z
conceptual-independence-matrix: conceptual-independence-matrix.html
last_built: 2020-11-03T20:19Z
......@@ -72,7 +72,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -129,13 +129,13 @@
<p>Vargha &amp; Delaney's A</p>
</div>
<pre class="usage"><span class='fu'>A_VarghaDelaney</span>(
<span class='no'>control</span>,
<span class='no'>experimental</span>,
<span class='kw'>bootstrap</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>conf.level</span> <span class='kw'>=</span> <span class='fl'>0.95</span>,
<span class='kw'>warn</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
)</pre>
<pre class="usage"><span class='fu'>A_VarghaDelaney</span><span class='op'>(</span>
<span class='va'>control</span>,
<span class='va'>experimental</span>,
bootstrap <span class='op'>=</span> <span class='cn'>NULL</span>,
conf.level <span class='op'>=</span> <span class='fl'>0.95</span>,
warn <span class='op'>=</span> <span class='cn'>FALSE</span>
<span class='op'>)</span></pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
......@@ -169,7 +169,8 @@ warnings, for example if ties are encountered.</p></td>
<p>A numeric vector of length 1 with the A value, named 'A'.</p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='kw pkg'>ufs</span><span class='kw ns'>::</span><span class='fu'>A_VarghaDelaney</span>(<span class='fl'>1</span>:<span class='fl'>8</span>, <span class='fl'>3</span>:<span class='fl'>12</span>);</div><div class='output co'>#&gt; A
<pre class="examples"><div class='input'><span class='fu'>ufs</span><span class='fu'>::</span><span class='fu'>A_VarghaDelaney</span><span class='op'>(</span><span class='fl'>1</span><span class='op'>:</span><span class='fl'>8</span>, <span class='fl'>3</span><span class='op'>:</span><span class='fl'>12</span><span class='op'>)</span>;
</div><div class='output co'>#&gt; A
#&gt; 0.775 </div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
......@@ -186,7 +187,7 @@ warnings, for example if ties are encountered.</p></td>
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
public/reference/CIM-1.png

49.2 KB | W: | H:

public/reference/CIM-1.png

101 KB | W: | H:

public/reference/CIM-1.png
public/reference/CIM-1.png
public/reference/CIM-1.png
public/reference/CIM-1.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -72,7 +72,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -129,46 +129,46 @@
<p>Conceptual Independence Matrix</p>
</div>
<pre class="usage"><span class='fu'>CIM</span>(
<span class='no'>data</span>,
<span class='no'>scales</span>,
<span class='kw'>conf.level</span> <span class='kw'>=</span> <span class='fl'>0.95</span>,
<span class='kw'>colors</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='st'>"#440154FF"</span>, <span class='st'>"#7AD151FF"</span>),
<span class='kw'>outputFile</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>outputWidth</span> <span class='kw'>=</span> <span class='fl'>100</span>,
<span class='kw'>outputHeight</span> <span class='kw'>=</span> <span class='fl'>100</span>,
<span class='kw'>outputUnits</span> <span class='kw'>=</span> <span class='st'>"cm"</span>,
<span class='kw'>faMethod</span> <span class='kw'>=</span> <span class='st'>"minres"</span>,
<span class='kw'>n.iter</span> <span class='kw'>=</span> <span class='fl'>100</span>,
<span class='kw'>n.repeatOnWarning</span> <span class='kw'>=</span> <span class='fl'>50</span>,
<span class='kw'>warningTolerance</span> <span class='kw'>=</span> <span class='fl'>2</span>,
<span class='kw'>silentRepeatOnWarning</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>showWarnings</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>skipRegex</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='kw'>headingLevel</span> <span class='kw'>=</span> <span class='fl'>2</span>,
<span class='kw'>printAbbreviations</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>,
<span class='kw'>drawPlot</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>,
<span class='kw'>returnPlotOnly</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>
)
<span class='fu'>CIM_partial</span>(
<span class='no'>x</span>,
<span class='kw'>headingLevel</span> <span class='kw'>=</span> <span class='no'>x</span>$<span class='no'>input</span>$<span class='no'>headingLevel</span>,
<span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>,
<span class='kw'>echoPartial</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>partialFile</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='no'>...</span>
)
<pre class="usage"><span class='fu'>CIM</span><span class='op'>(</span>
<span class='va'>data</span>,
<span class='va'>scales</span>,
conf.level <span class='op'>=</span> <span class='fl'>0.95</span>,
colors <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"#440154FF"</span>, <span class='st'>"#7AD151FF"</span><span class='op'>)</span>,
outputFile <span class='op'>=</span> <span class='cn'>NULL</span>,
outputWidth <span class='op'>=</span> <span class='fl'>100</span>,
outputHeight <span class='op'>=</span> <span class='fl'>100</span>,
outputUnits <span class='op'>=</span> <span class='st'>"cm"</span>,
faMethod <span class='op'>=</span> <span class='st'>"minres"</span>,
n.iter <span class='op'>=</span> <span class='fl'>100</span>,
n.repeatOnWarning <span class='op'>=</span> <span class='fl'>50</span>,
warningTolerance <span class='op'>=</span> <span class='fl'>2</span>,
silentRepeatOnWarning <span class='op'>=</span> <span class='cn'>FALSE</span>,
showWarnings <span class='op'>=</span> <span class='cn'>FALSE</span>,
skipRegex <span class='op'>=</span> <span class='cn'>NULL</span>,
headingLevel <span class='op'>=</span> <span class='fl'>2</span>,
printAbbreviations <span class='op'>=</span> <span class='cn'>TRUE</span>,
drawPlot <span class='op'>=</span> <span class='cn'>TRUE</span>,
returnPlotOnly <span class='op'>=</span> <span class='cn'>TRUE</span>
<span class='op'>)</span>
<span class='fu'>CIM_partial</span><span class='op'>(</span>
<span class='va'>x</span>,
headingLevel <span class='op'>=</span> <span class='va'>x</span><span class='op'>$</span><span class='va'>input</span><span class='op'>$</span><span class='va'>headingLevel</span>,
quiet <span class='op'>=</span> <span class='cn'>TRUE</span>,
echoPartial <span class='op'>=</span> <span class='cn'>FALSE</span>,
partialFile <span class='op'>=</span> <span class='cn'>NULL</span>,
<span class='va'>...</span>
<span class='op'>)</span>
<span class='co'># S3 method for CIM</span>
<span class='fu'>knit_print</span>(
<span class='no'>x</span>,
<span class='kw'>headingLevel</span> <span class='kw'>=</span> <span class='no'>x</span>$<span class='no'>input</span>$<span class='no'>headingLevel</span>,
<span class='kw'>quiet</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>,
<span class='kw'>echoPartial</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>,
<span class='kw'>partialFile</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
<span class='no'>...</span>
)</pre>
<span class='fu'>knit_print</span><span class='op'>(</span>
<span class='va'>x</span>,
headingLevel <span class='op'>=</span> <span class='va'>x</span><span class='op'>$</span><span class='va'>input</span><span class='op'>$</span><span class='va'>headingLevel</span>,
quiet <span class='op'>=</span> <span class='cn'>TRUE</span>,
echoPartial <span class='op'>=</span> <span class='cn'>FALSE</span>,
partialFile <span class='op'>=</span> <span class='cn'>NULL</span>,
<span class='va'>...</span>
<span class='op'>)</span></pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
......@@ -283,26 +283,27 @@ that are used.</p></td>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='co'>### Load dataset `bfi`, originally from psychTools package</span>
<span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span>(<span class='no'>bfi</span>, <span class='kw'>package</span><span class='kw'>=</span> <span class='st'>'ufs'</span>);
<span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span><span class='op'>(</span><span class='va'>bfi</span>, package<span class='op'>=</span> <span class='st'>'ufs'</span><span class='op'>)</span>;
<span class='co'>### Specify scales</span>
<span class='no'>bfiScales</span> <span class='kw'>&lt;-</span>
<span class='fu'><a href='https://rdrr.io/r/base/list.html'>list</a></span>(<span class='kw'>Agreeableness</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span>(<span class='st'>"Agreeableness_item_"</span>, <span class='fl'>1</span>:<span class='fl'>5</span>),
<span class='kw'>Conscientiousness</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span>(<span class='st'>"Conscientiousness_item_"</span>, <span class='fl'>1</span>:<span class='fl'>5</span>),
<span class='kw'>Extraversion</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span>(<span class='st'>"Extraversion_item_"</span>, <span class='fl'>1</span>:<span class='fl'>5</span>),
<span class='kw'>Neuroticism</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span>(<span class='st'>"Neuroticism_item_"</span>, <span class='fl'>1</span>:<span class='fl'>5</span>),
<span class='kw'>Openness</span> <span class='kw'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span>(<span class='st'>"Openness_item_"</span>, <span class='fl'>1</span>:<span class='fl'>5</span>));
<span class='va'>bfiScales</span> <span class='op'>&lt;-</span>
<span class='fu'><a href='https://rdrr.io/r/base/list.html'>list</a></span><span class='op'>(</span>Agreeableness <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span><span class='op'>(</span><span class='st'>"Agreeableness_item_"</span>, <span class='fl'>1</span><span class='op'>:</span><span class='fl'>5</span><span class='op'>)</span>,
Conscientiousness <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span><span class='op'>(</span><span class='st'>"Conscientiousness_item_"</span>, <span class='fl'>1</span><span class='op'>:</span><span class='fl'>5</span><span class='op'>)</span>,
Extraversion <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span><span class='op'>(</span><span class='st'>"Extraversion_item_"</span>, <span class='fl'>1</span><span class='op'>:</span><span class='fl'>5</span><span class='op'>)</span>,
Neuroticism <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span><span class='op'>(</span><span class='st'>"Neuroticism_item_"</span>, <span class='fl'>1</span><span class='op'>:</span><span class='fl'>5</span><span class='op'>)</span>,
Openness <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/paste.html'>paste0</a></span><span class='op'>(</span><span class='st'>"Openness_item_"</span>, <span class='fl'>1</span><span class='op'>:</span><span class='fl'>5</span><span class='op'>)</span><span class='op'>)</span>;
<span class='fu'><a href='https://rdrr.io/r/base/names.html'>names</a></span>(<span class='no'>bfi</span>) <span class='kw'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='fu'><a href='https://rdrr.io/r/base/unlist.html'>unlist</a></span>(<span class='no'>bfiScales</span>),
<span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='st'>'gender'</span>, <span class='st'>'education'</span>, <span class='st'>'age'</span>));
<span class='fu'><a href='https://rdrr.io/r/base/names.html'>names</a></span><span class='op'>(</span><span class='va'>bfi</span><span class='op'>)</span> <span class='op'>&lt;-</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='fu'><a href='https://rdrr.io/r/base/unlist.html'>unlist</a></span><span class='op'>(</span><span class='va'>bfiScales</span><span class='op'>)</span>,
<span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>'gender'</span>, <span class='st'>'education'</span>, <span class='st'>'age'</span><span class='op'>)</span><span class='op'>)</span>;
<span class='co'>### Only select first two and the first three items to</span>
<span class='co'>### keep it quick; just pass the full 'bfiScales'</span>
<span class='co'>### object to run for all five the full scales</span>
<span class='co'># \donttest{</span>
<span class='fu'>CIM</span>(<span class='no'>bfi</span>,
<span class='kw'>scales</span><span class='kw'>=</span><span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>lapply</a></span>(<span class='no'>bfiScales</span>, <span class='no'>head</span>, <span class='fl'>3</span>)[<span class='fl'>1</span>:<span class='fl'>2</span>],
<span class='kw'>n.iter</span><span class='kw'>=</span><span class='fl'>10</span>);</div><div class='output co'>#&gt; <span class='message'>Loading required namespace: GPArotation</span></div><div class='output co'>#&gt;
<span class='fu'>CIM</span><span class='op'>(</span><span class='va'>bfi</span>,
scales<span class='op'>=</span><span class='fu'><a href='https://rdrr.io/r/base/lapply.html'>lapply</a></span><span class='op'>(</span><span class='va'>bfiScales</span>, <span class='va'>head</span>, <span class='fl'>3</span><span class='op'>)</span><span class='op'>[</span><span class='fl'>1</span><span class='op'>:</span><span class='fl'>2</span><span class='op'>]</span>,
n.iter<span class='op'>=</span><span class='fl'>10</span><span class='op'>)</span>;
</div><div class='output co'>#&gt; <span class='message'>Loading required namespace: GPArotation</span></div><div class='output co'>#&gt;
#&gt;
#&gt; Used scales and items:
#&gt;
......@@ -319,7 +320,7 @@ that are used.</p></td>
#&gt; 3 Agrb3
#&gt; 4 Cnsc1
#&gt; 5 Cnsc2
#&gt; 6 Cnsc3</div><div class='img'><img src='CIM-1.png' alt='' width='700' height='433' /></div><div class='input'># }
#&gt; 6 Cnsc3</div><div class='img'><img src='CIM-1.png' alt='' width='700' height='433' /></div><div class='input'><span class='co'># }</span>
</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
......@@ -336,7 +337,7 @@ that are used.</p></td>
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
......@@ -73,7 +73,7 @@ arguments, first." />
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -131,7 +131,7 @@ arguments, first." />
arguments, first.</p>
</div>
<pre class="usage"><span class='no'>find</span> <span class='kw'>%IN%</span> <span class='no'>table</span></pre>
<pre class="usage"><span class='va'>find</span> <span class='op'>%IN%</span> <span class='va'>table</span></pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
......@@ -151,7 +151,8 @@ arguments, first.</p>
<p>A logical vector.</p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='no'>letters</span>[<span class='fl'>1</span>:<span class='fl'>4</span>] <span class='kw'>%IN%</span> <span class='no'>LETTERS</span></div><div class='output co'>#&gt; [1] TRUE TRUE TRUE TRUE</div><div class='input'>
<pre class="examples"><div class='input'><span class='va'>letters</span><span class='op'>[</span><span class='fl'>1</span><span class='op'>:</span><span class='fl'>4</span><span class='op'>]</span> <span class='op'>%IN%</span> <span class='va'>LETTERS</span>
</div><div class='output co'>#&gt; [1] TRUE TRUE TRUE TRUE</div><div class='input'>
</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
......@@ -168,7 +169,7 @@ arguments, first.</p>
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
......@@ -72,7 +72,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -129,7 +129,7 @@
<p>Sample size for accuracy: d</p>
</div>
<pre class="usage"><span class='fu'>aipedjmv</span>(<span class='kw'>d</span> <span class='kw'>=</span> <span class='fl'>0.5</span>, <span class='kw'>w</span> <span class='kw'>=</span> <span class='fl'>0.1</span>, <span class='kw'>conf.level</span> <span class='kw'>=</span> <span class='fl'>95</span>)</pre>
<pre class="usage"><span class='fu'>aipedjmv</span><span class='op'>(</span>d <span class='op'>=</span> <span class='fl'>0.5</span>, w <span class='op'>=</span> <span class='fl'>0.1</span>, conf.level <span class='op'>=</span> <span class='fl'>95</span><span class='op'>)</span></pre>
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
......@@ -172,7 +172,7 @@
</div>
<div class="pkgdown">
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p>
</div>
</footer>
......
......@@ -72,7 +72,7 @@
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">ufs</a>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.3.3</span>
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span>
</span>
</div>
......@@ -129,7 +129,7 @@
<p>Sample size for accuracy: r</p>