From 30fb54610d0f5f1e766229261e3e348787b08c8f Mon Sep 17 00:00:00 2001 From: Ben Anderson <dataknut@icloud.com> Date: Tue, 27 Jun 2017 18:09:26 +0100 Subject: [PATCH] latest run --- MTUS-W6-adult-episodes-data-processing.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/MTUS-W6-adult-episodes-data-processing.html b/MTUS-W6-adult-episodes-data-processing.html index bfc97a8..9b1a6a9 100644 --- a/MTUS-W6-adult-episodes-data-processing.html +++ b/MTUS-W6-adult-episodes-data-processing.html @@ -118,7 +118,7 @@ $(document).ready(function () { <h1 class="title toc-ignore">MTUS World 6 Data Processing</h1> <h4 class="author"><em>Ben Anderson (<a href="mailto:b.anderson@soton.ac.uk">b.anderson@soton.ac.uk</a>, <a href="mailto:/@dataknut">/@dataknut</a>)</em></h4> -<h4 class="date"><em>Last run at: 2017-05-23 13:28:18</em></h4> +<h4 class="date"><em>Last run at: 2017-06-27 17:35:27</em></h4> </div> @@ -188,7 +188,14 @@ $(document).ready(function () { ## Unrecognized record type 7, subtype 18 encountered in system file</code></pre> <pre><code>## re-encoding from CP1252</code></pre> <pre><code>## user system elapsed -## 225.749 10.703 260.696</code></pre> +## 299.659 16.317 647.112</code></pre> +<pre class="r"><code>names(mtusEpsW6DT)</code></pre> +<pre><code>## [1] "countrya" "survey" "swave" "msamp" "hldid" "persid" +## [7] "id" "day" "cday" "month" "year" "diary" +## [13] "badcase" "sex" "age" "time" "clockst" "start" +## [19] "end" "epnum" "main" "sec" "av" "inout" +## [25] "eloc" "ict" "mtrav" "alone" "child" "sppart" +## [31] "oad"</code></pre> <p>We have loaded 11,501,221 rows of data for 11 countries.</p> <pre class="r"><code>kable(caption = "Number of diaries per year", ba_tidyNum(table(mtusEpsW6DT$survey,droplevels(mtusEpsW6DT$countrya)) # removes unused countries @@ -517,7 +524,7 @@ setkey(mtusUKEpsDT, countrya, survey, swave, msamp, hldid, persid, id) # sorts i print("-> Create uniq id for diaries (for matching) and persons")</code></pre> <pre><code>## [1] "-> Create uniq id for diaries (for matching) and persons"</code></pre> <pre class="r"><code># Create unique ids ---- -ba_MTUScreateIds(mtusUKEpsDT)</code></pre> +mtusUKEpsDT <- ba_MTUScreateIds(mtusUKEpsDT)</code></pre> <div id="episode-dates" class="section level2"> <h2><span class="header-section-number">3.1</span> Episode dates</h2> <pre class="r"><code># Check cday - the day the episode starts. It could span midnight (2 days) @@ -4008,7 +4015,7 @@ kable( </tbody> </table> <hr /> -<p><strong>Meta:</strong> Analysis completed in: 6.662 seconds using <a href="https://cran.r-project.org/package=knitr">knitr</a> in <a href="http://www.rstudio.com">RStudio</a>.</p> +<p><strong>Meta:</strong> Analysis completed in: 26.452 seconds using <a href="https://cran.r-project.org/package=knitr">knitr</a> in <a href="http://www.rstudio.com">RStudio</a>.</p> </div> </div> <div id="references" class="section level1 unnumbered"> -- GitLab