aboutsummaryrefslogtreecommitdiff
path: root/docs/reference/mkin_long_to_wide.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference/mkin_long_to_wide.html')
-rw-r--r--docs/reference/mkin_long_to_wide.html40
1 files changed, 20 insertions, 20 deletions
diff --git a/docs/reference/mkin_long_to_wide.html b/docs/reference/mkin_long_to_wide.html
index 169aefd4..bb7c263a 100644
--- a/docs/reference/mkin_long_to_wide.html
+++ b/docs/reference/mkin_long_to_wide.html
@@ -8,11 +8,13 @@
<title>Convert a dataframe from long to wide format — mkin_long_to_wide • mkin</title>
+
<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha256-916EbMg70RQy9LHiGkXzG8hSg9EdNy97GazNG/aiY1w=" crossorigin="anonymous" />
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>
<!-- Font Awesome icons -->
@@ -32,15 +34,16 @@
-<meta property="og:title" content="Convert a dataframe from long to wide format — mkin_long_to_wide" />
-<meta property="og:description" content="This function takes a dataframe in the long form, i.e. with a row
- for each observed value, and converts it into a dataframe with one
- independent variable and several dependent variables as columns." />
+<meta property="og:title" content="Convert a dataframe from long to wide format — mkin_long_to_wide" />
+<meta property="og:description" content="This function takes a dataframe in the long form, i.e. with a row for each
+observed value, and converts it into a dataframe with one independent
+variable and several dependent variables as columns." />
<meta name="twitter:card" content="summary" />
+
<!-- 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>
@@ -111,7 +114,6 @@
<a href="../news/index.html">News</a>
</li>
</ul>
-
<ul class="nav navbar-nav navbar-right">
</ul>
@@ -133,23 +135,22 @@
</div>
<div class="ref-description">
-
- <p>This function takes a dataframe in the long form, i.e. with a row
- for each observed value, and converts it into a dataframe with one
- independent variable and several dependent variables as columns.</p>
-
+ <p>This function takes a dataframe in the long form, i.e. with a row for each
+observed value, and converts it into a dataframe with one independent
+variable and several dependent variables as columns.</p>
</div>
<pre class="usage"><span class='fu'>mkin_long_to_wide</span>(<span class='no'>long_data</span>, <span class='kw'>time</span> <span class='kw'>=</span> <span class='st'>"time"</span>, <span class='kw'>outtime</span> <span class='kw'>=</span> <span class='st'>"time"</span>)</pre>
-
+
<h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
<table class="ref-arguments">
<colgroup><col class="name" /><col class="desc" /></colgroup>
<tr>
<th>long_data</th>
- <td><p>The dataframe must contain one variable called "time" with the time values specified by the
- <code>time</code> argument, one column called "name" with the grouping of the observed values, and
- finally one column of observed values called "value".</p></td>
+ <td><p>The dataframe must contain one variable called "time" with
+the time values specified by the <code>time</code> argument, one column called
+"name" with the grouping of the observed values, and finally one column of
+observed values called "value".</p></td>
</tr>
<tr>
<th>time</th>
@@ -160,14 +161,14 @@
<td><p>The name of the time variable in the wide output data.</p></td>
</tr>
</table>
-
+
<h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>
<p>Dataframe in wide format.</p>
-
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
- <pre class="examples"><div class='input'><span class='fu'>mkin_long_to_wide</span>(<span class='no'>FOCUS_2006_D</span>)</div><div class='output co'>#&gt; time parent m1
+ <pre class="examples"><div class='input'>
+<span class='fu'>mkin_long_to_wide</span>(<span class='no'>FOCUS_2006_D</span>)</div><div class='output co'>#&gt; time parent m1
#&gt; 1 0 99.46 0.00
#&gt; 2 0 102.04 0.00
#&gt; 3 1 93.50 4.84
@@ -189,15 +190,14 @@
#&gt; 19 100 NA 31.04
#&gt; 20 100 NA 33.13
#&gt; 21 120 NA 25.15
-#&gt; 22 120 NA 33.31</div></pre>
+#&gt; 22 120 NA 33.31</div><div class='input'>
+</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
<li><a href="#arguments">Arguments</a></li>
-
<li><a href="#value">Value</a></li>
-
<li><a href="#examples">Examples</a></li>
</ul>

Contact - Imprint