2019-01-29 00:06:50 +01:00
<!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.0" >
2020-12-24 23:29:10 +01:00
< title > How to work with WHONET data • AMR (for R)< / title >
2019-01-29 00:06:50 +01:00
<!-- 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" >
2020-12-27 00:07:00 +01:00
<!-- jquery --> < script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity = "sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin = "anonymous" > < / script > <!-- Bootstrap --> < link href = "https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/flatly/bootstrap.min.css" rel = "stylesheet" crossorigin = "anonymous" >
2020-12-24 23:29:10 +01:00
< script src = "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity = "sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin = "anonymous" > < / script > <!-- bootstrap - toc --> < link rel = "stylesheet" href = "../bootstrap-toc.css" >
2020-04-17 19:16:30 +02:00
< script src = "../bootstrap-toc.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" >
<!-- 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 > <!-- 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 > <!-- pkgdown --> < link href = "../pkgdown.css" rel = "stylesheet" >
2020-02-23 20:56:11 +01:00
< script src = "../pkgdown.js" > < / script > < link href = "../extra.css" rel = "stylesheet" >
2019-01-29 00:06:50 +01:00
< script src = "../extra.js" > < / script > < meta property = "og:title" content = "How to work with WHONET data" >
2020-04-13 21:09:56 +02:00
< meta property = "og:description" content = "AMR" >
2020-10-04 19:26:43 +02:00
< meta property = "og:image" content = "https://msberends.github.io/AMR/logo.png" >
2021-08-16 21:54:34 +02:00
< meta name = "twitter:card" content = "summary_large_image" >
< meta name = "twitter:creator" content = "@msberends" >
< meta name = "twitter:site" content = "@univgroningen" >
2019-01-29 00:06:50 +01:00
<!-- 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 >
2020-04-17 19:16:30 +02:00
< body data-spy = "scroll" data-target = "#toc" >
2021-07-23 21:42:11 +02:00
2019-01-29 00:06:50 +01:00
< div class = "container template-article" >
< header > < div class = "navbar navbar-default navbar-fixed-top" role = "navigation" >
< div class = "container" >
< div class = "navbar-header" >
< button type = "button" class = "navbar-toggle collapsed" data-toggle = "collapse" data-target = "#navbar" aria-expanded = "false" >
< span class = "sr-only" > Toggle navigation< / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< span class = "icon-bar" > < / span >
< / button >
< span class = "navbar-brand" >
< a class = "navbar-link" href = "../index.html" > AMR (for R)< / a >
2021-08-29 23:50:45 +02:00
< span class = "version label label-default" data-toggle = "tooltip" data-placement = "bottom" title = "Latest development version" > 1.7.1.9030< / span >
2019-01-29 00:06:50 +01:00
< / span >
< / div >
< div id = "navbar" class = "navbar-collapse collapse" >
< ul class = "nav navbar-nav" >
< li >
< a href = "../index.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-home" > < / span >
2019-01-29 00:06:50 +01:00
Home
< / a >
< / li >
< li class = "dropdown" >
< a href = "#" class = "dropdown-toggle" data-toggle = "dropdown" role = "button" aria-expanded = "false" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-question-circle" > < / span >
2019-01-29 00:06:50 +01:00
How to
< span class = "caret" > < / span >
< / a >
< ul class = "dropdown-menu" role = "menu" >
< li >
< a href = "../articles/AMR.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-directions" > < / span >
2019-01-29 00:06:50 +01:00
Conduct AMR analysis
< / a >
< / li >
< li >
2019-02-14 10:23:51 +01:00
< a href = "../articles/resistance_predict.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-dice" > < / span >
2019-01-29 00:06:50 +01:00
Predict antimicrobial resistance
< / a >
< / li >
2020-08-17 21:49:58 +02:00
< li >
< a href = "../articles/datasets.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-database" > < / span >
2020-08-17 21:49:58 +02:00
2020-09-03 20:59:21 +02:00
Data sets for download / own use
2020-08-17 21:49:58 +02:00
< / a >
< / li >
2020-04-13 21:09:56 +02:00
< li >
< a href = "../articles/PCA.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-compress" > < / span >
2020-04-13 21:09:56 +02:00
Conduct principal component analysis for AMR
< / a >
< / li >
2019-05-23 16:58:59 +02:00
< li >
< a href = "../articles/MDR.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-skull-crossbones" > < / span >
2019-05-23 16:58:59 +02:00
Determine multi-drug resistance (MDR)
< / a >
< / li >
2019-01-29 00:06:50 +01:00
< li >
< a href = "../articles/WHONET.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-globe-americas" > < / span >
2019-01-29 00:06:50 +01:00
Work with WHONET data
< / a >
< / li >
2019-02-14 15:18:17 +01:00
< li >
< a href = "../articles/SPSS.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-file-upload" > < / span >
2019-02-14 15:18:17 +01:00
Import data from SPSS/SAS/Stata
< / a >
< / li >
2019-01-29 00:06:50 +01:00
< li >
< a href = "../articles/EUCAST.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-exchange-alt" > < / span >
2019-01-29 00:06:50 +01:00
Apply EUCAST rules
< / a >
< / li >
< li >
2019-02-14 10:23:51 +01:00
< a href = "../reference/mo_property.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-bug" > < / span >
2019-01-29 00:06:50 +01:00
Get properties of a microorganism
< / a >
< / li >
< li >
2019-05-16 21:20:00 +02:00
< a href = "../reference/ab_property.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-capsules" > < / span >
2019-01-29 00:06:50 +01:00
Get properties of an antibiotic
< / a >
< / li >
< li >
< a href = "../articles/benchmarks.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-shipping-fast" > < / span >
2019-01-29 00:06:50 +01:00
Other: benchmarks
< / a >
< / li >
< / ul >
< / li >
< li >
2020-07-28 18:39:57 +02:00
< a href = "../reference/index.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-book-open" > < / span >
2019-01-29 00:06:50 +01:00
Manual
< / a >
< / li >
< li >
< a href = "../authors.html" >
2021-07-23 21:42:11 +02:00
< span class = "fa fa-users" > < / span >
2019-01-29 00:06:50 +01:00
Authors
< / a >
< / li >
< li >
2020-07-28 18:39:57 +02:00
< a href = "../news/index.html" >
2021-05-24 15:29:17 +02:00
< span class = "far fa-newspaper" > < / span >
2019-01-29 00:06:50 +01:00
Changelog
< / a >
< / li >
< / ul >
< ul class = "nav navbar-nav navbar-right" >
< li >
2021-07-23 21:42:11 +02:00
< a href = "https://github.com/msberends/AMR" class = "external-link" >
2021-05-24 15:29:17 +02:00
< span class = "fab fa-github" > < / span >
2019-01-29 00:06:50 +01:00
Source Code
< / a >
< / li >
< / ul >
< / div >
<!-- /.nav - collapse -->
< / div >
<!-- /.container -->
< / div >
<!-- /.navbar -->
2019-10-13 09:31:58 +02:00
2021-07-23 21:42:11 +02:00
< / header > < script src = "WHONET_files/header-attrs-2.9/header-attrs.js" > < / script > < div class = "row" >
2019-01-29 00:06:50 +01:00
< div class = "col-md-9 contents" >
< div class = "page-header toc-ignore" >
2020-04-17 19:16:30 +02:00
< h1 data-toc-skip > How to work with WHONET data< / h1 >
2019-01-29 00:06:50 +01:00
2021-10-06 13:23:57 +02:00
< small class = "dont-index" > Source: < a href = "https://github.com/msberends/AMR/blob/main/vignettes/WHONET.Rmd" class = "external-link" > < code > vignettes/WHONET.Rmd< / code > < / a > < / small >
2019-01-29 00:06:50 +01:00
< div class = "hidden name" > < code > WHONET.Rmd< / code > < / div >
< / div >
2019-11-09 11:33:22 +01:00
< div id = "import-of-data" class = "section level3" >
< h3 class = "hasAnchor" >
2021-07-23 21:42:11 +02:00
< a href = "#import-of-data" class = "anchor" aria-hidden = "true" > < / a > Import of data< / h3 >
< p > This tutorial assumes you already imported the WHONET data with e.g. the < a href = "https://readxl.tidyverse.org/" class = "external-link" > < code > readxl< / code > package< / a > . In RStudio, this can be done using the menu button ‘ Import Dataset’ in the tab ‘ Environment’ . Choose the option ‘ From Excel’ and select your exported file. Make sure date fields are imported correctly.< / p >
2019-01-29 20:20:09 +01:00
< p > An example syntax could look like this:< / p >
2021-05-24 15:29:17 +02:00
< div class = "sourceCode" id = "cb1" > < pre class = "downlit sourceCode r" >
2021-07-23 21:42:11 +02:00
< code class = "sourceCode R" > < 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" > < a href = "https://readxl.tidyverse.org" class = "external-link" > readxl< / a > < / span > < span class = "op" > )< / span >
< span class = "va" > data< / span > < span class = "op" > < -< / span > < span class = "fu" > < a href = "https://readxl.tidyverse.org/reference/read_excel.html" class = "external-link" > read_excel< / a > < / span > < span class = "op" > (< / span > path < span class = "op" > =< / span > < span class = "st" > "path/to/your/file.xlsx"< / span > < span class = "op" > )< / span > < / code > < / pre > < / div >
2020-07-09 20:07:39 +02:00
< p > This package comes with an < a href = "https://msberends.github.io/AMR/reference/WHONET.html" > example data set < code > WHONET< / code > < / a > . We will use it for this analysis.< / p >
2019-01-29 20:20:09 +01:00
< / div >
2019-11-09 11:33:22 +01:00
< div id = "preparation" class = "section level3" >
< h3 class = "hasAnchor" >
2021-07-23 21:42:11 +02:00
< a href = "#preparation" class = "anchor" aria-hidden = "true" > < / a > Preparation< / h3 >
< p > First, load the relevant packages if you did not yet did this. I use the tidyverse for all of my analyses. All of them. If you don’ t know it yet, I suggest you read about it on their website: < a href = "https://www.tidyverse.org/" class = "external-link uri" > https://www.tidyverse.org/< / a > .< / p >
2021-05-24 15:29:17 +02:00
< div class = "sourceCode" id = "cb2" > < pre class = "downlit sourceCode r" >
2021-07-23 21:42:11 +02:00
< code class = "sourceCode R" > < 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" > < a href = "https://dplyr.tidyverse.org" class = "external-link" > dplyr< / a > < / span > < span class = "op" > )< / span > < span class = "co" > # part of tidyverse< / 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" > < a href = "https://ggplot2.tidyverse.org" class = "external-link" > ggplot2< / a > < / span > < span class = "op" > )< / span > < span class = "co" > # part of tidyverse< / 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" > < a href = "https://github.com/msberends/AMR" class = "external-link" > AMR< / a > < / span > < span class = "op" > )< / span > < span class = "co" > # this package< / 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" > < a href = "https://github.com/msberends/cleaner" class = "external-link" > cleaner< / a > < / span > < span class = "op" > )< / span > < span class = "co" > # to create frequency tables< / span > < / code > < / pre > < / div >
2019-01-29 20:20:09 +01:00
< p > We will have to transform some variables to simplify and automate the analysis:< / p >
< ul >
2021-06-01 15:33:06 +02:00
< li > Microorganisms should be transformed to our own microorganism codes (called an < code > mo< / code > ) using < a href = "https://msberends.github.io/AMR/reference/catalogue_of_life" > our Catalogue of Life reference data set< / a > , which contains all ~70,000 microorganisms from the taxonomic kingdoms Bacteria, Fungi and Protozoa. We do the tranformation with < code > < a href = "../reference/as.mo.html" > as.mo()< / a > < / code > . This function also recognises almost all WHONET abbreviations of microorganisms.< / li >
2019-01-29 20:20:09 +01:00
< li > Antimicrobial results or interpretations have to be clean and valid. In other words, they should only contain values < code > "S"< / code > , < code > "I"< / code > or < code > "R"< / code > . That is exactly where the < code > < a href = "../reference/as.rsi.html" > as.rsi()< / a > < / code > function is for.< / li >
< / ul >
2021-05-24 15:29:17 +02:00
< div class = "sourceCode" id = "cb3" > < pre class = "downlit sourceCode r" >
< code class = "sourceCode R" > < span class = "co" > # transform variables< / span >
2020-10-26 12:23:03 +01:00
< span class = "va" > data< / span > < span class = "op" > < -< / span > < span class = "va" > WHONET< / span > < span class = "op" > %> %< / span >
2020-04-17 19:16:30 +02:00
< span class = "co" > # get microbial ID based on given organism< / span >
2021-07-23 21:42:11 +02:00
< span class = "fu" > < a href = "https://dplyr.tidyverse.org/reference/mutate.html" class = "external-link" > mutate< / a > < / span > < span class = "op" > (< / span > mo < span class = "op" > =< / span > < span class = "fu" > < a href = "../reference/as.mo.html" > as.mo< / a > < / span > < span class = "op" > (< / span > < span class = "va" > Organism< / span > < span class = "op" > )< / span > < span class = "op" > )< / span > < span class = "op" > %> %< / span >
2020-04-17 19:16:30 +02:00
< span class = "co" > # transform everything from "AMP_ND10" to "CIP_EE" to the new `rsi` class< / span >
2021-07-23 21:42:11 +02:00
< span class = "fu" > < a href = "https://dplyr.tidyverse.org/reference/mutate_all.html" class = "external-link" > mutate_at< / a > < / span > < span class = "op" > (< / span > < span class = "fu" > < a href = "https://dplyr.tidyverse.org/reference/vars.html" class = "external-link" > vars< / a > < / span > < span class = "op" > (< / span > < span class = "va" > AMP_ND10< / span > < span class = "op" > :< / span > < span class = "va" > CIP_EE< / span > < span class = "op" > )< / span > , < span class = "va" > as.rsi< / span > < span class = "op" > )< / span > < / code > < / pre > < / div >
2019-07-29 13:33:48 +02:00
< p > No errors or warnings, so all values are transformed succesfully.< / p >
2021-07-23 21:42:11 +02:00
< p > We also created a package dedicated to data cleaning and checking, called the < code > cleaner< / code > package. Its < code > < a href = "https://rdrr.io/pkg/cleaner/man/freq.html" class = "external-link" > freq()< / a > < / code > function can be used to create frequency tables.< / p >
2019-07-29 13:33:48 +02:00
< p > So let’ s check our data, with a couple of frequency tables:< / p >
2021-05-24 15:29:17 +02:00
< div class = "sourceCode" id = "cb4" > < pre class = "downlit sourceCode r" >
< code class = "sourceCode R" > < span class = "co" > # our newly created `mo` variable, put in the mo_name() function< / span >
2021-07-23 21:42:11 +02:00
< span class = "va" > data< / span > < span class = "op" > %> %< / span > < span class = "fu" > < a href = "https://rdrr.io/pkg/cleaner/man/freq.html" class = "external-link" > freq< / a > < / span > < span class = "op" > (< / span > < span class = "fu" > < a href = "../reference/mo_property.html" > mo_name< / a > < / span > < span class = "op" > (< / span > < span class = "va" > mo< / span > < span class = "op" > )< / span > , nmax < span class = "op" > =< / span > < span class = "fl" > 10< / span > < span class = "op" > )< / span > < / code > < / pre > < / div >
2019-07-29 13:33:48 +02:00
< p > < strong > Frequency table< / strong > < / p >
2019-11-29 19:43:23 +01:00
< p > Class: character< br >
2020-02-23 20:56:11 +01:00
Length: 500< br >
2021-05-26 14:04:12 +02:00
Available: 500 (100.0%, NA: 0 = 0.0%)< br >
2020-05-28 16:48:55 +02:00
Unique: 37< / p >
2019-11-29 19:43:23 +01:00
< p > Shortest: 11< br >
Longest: 40< / p >
2019-01-29 20:20:09 +01:00
< table class = "table" >
< thead > < tr class = "header" >
< th align = "left" > < / th >
< th align = "left" > Item< / th >
< th align = "right" > Count< / th >
< th align = "right" > Percent< / th >
< th align = "right" > Cum. Count< / th >
< th align = "right" > Cum. Percent< / th >
< / tr > < / thead >
< tbody >
< tr class = "odd" >
< td align = "left" > 1< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Escherichia coli< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 245< / td >
< td align = "right" > 49.0%< / td >
< td align = "right" > 245< / td >
< td align = "right" > 49.0%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "even" >
< td align = "left" > 2< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Coagulase-negative Staphylococcus (CoNS)< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 74< / td >
< td align = "right" > 14.8%< / td >
< td align = "right" > 319< / td >
< td align = "right" > 63.8%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "odd" >
< td align = "left" > 3< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Staphylococcus epidermidis< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 38< / td >
< td align = "right" > 7.6%< / td >
< td align = "right" > 357< / td >
< td align = "right" > 71.4%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "even" >
< td align = "left" > 4< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Streptococcus pneumoniae< / td >
2019-01-29 20:20:09 +01:00
< td align = "right" > 31< / td >
< td align = "right" > 6.2%< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 388< / td >
< td align = "right" > 77.6%< / td >
< / tr >
< tr class = "odd" >
< td align = "left" > 5< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Staphylococcus hominis< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 21< / td >
< td align = "right" > 4.2%< / td >
< td align = "right" > 409< / td >
< td align = "right" > 81.8%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "even" >
< td align = "left" > 6< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Proteus mirabilis< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 9< / td >
< td align = "right" > 1.8%< / td >
< td align = "right" > 418< / td >
< td align = "right" > 83.6%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "odd" >
< td align = "left" > 7< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Enterococcus faecium< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 8< / td >
< td align = "right" > 1.6%< / td >
< td align = "right" > 426< / td >
< td align = "right" > 85.2%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "even" >
< td align = "left" > 8< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Staphylococcus capitis< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 8< / td >
< td align = "right" > 1.6%< / td >
< td align = "right" > 434< / td >
< td align = "right" > 86.8%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "odd" >
< td align = "left" > 9< / td >
2019-11-29 19:43:23 +01:00
< td align = "left" > Enterobacter cloacae< / td >
2019-03-15 13:57:25 +01:00
< td align = "right" > 5< / td >
< td align = "right" > 1.0%< / td >
2019-03-27 11:22:36 +01:00
< td align = "right" > 439< / td >
< td align = "right" > 87.8%< / td >
< / tr >
< tr class = "even" >
< td align = "left" > 10< / td >
2020-05-28 16:48:55 +02:00
< td align = "left" > Streptococcus anginosus< / td >
< td align = "right" > 5< / td >
< td align = "right" > 1.0%< / td >
< td align = "right" > 444< / td >
< td align = "right" > 88.8%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< / tbody >
< / table >
2020-05-28 16:48:55 +02:00
< p > (omitted 27 entries, n = 56 [11.20%])< / p >
2021-05-24 15:29:17 +02:00
< div class = "sourceCode" id = "cb5" > < pre class = "downlit sourceCode r" >
< code class = "sourceCode R" > < span class = "co" > # our transformed antibiotic columns< / span >
2020-04-17 19:16:30 +02:00
< span class = "co" > # amoxicillin/clavulanic acid (J01CR02) as an example< / span >
2021-07-23 21:42:11 +02:00
< span class = "va" > data< / span > < span class = "op" > %> %< / span > < span class = "fu" > < a href = "https://rdrr.io/pkg/cleaner/man/freq.html" class = "external-link" > freq< / a > < / span > < span class = "op" > (< / span > < span class = "va" > AMC_ND2< / span > < span class = "op" > )< / span > < / code > < / pre > < / div >
2019-07-29 13:33:48 +02:00
< p > < strong > Frequency table< / strong > < / p >
2019-05-28 16:50:40 +02:00
< p > Class: factor > ordered > rsi (numeric)< br >
2020-02-23 20:56:11 +01:00
Length: 500< br >
2019-05-28 16:50:40 +02:00
Levels: 3: S < I < R< br >
2020-02-23 20:56:11 +01:00
Available: 481 (96.2%, NA: 19 = 3.8%)< br >
2019-01-30 16:00:55 +01:00
Unique: 3< / p >
2020-10-26 12:23:03 +01:00
< p > Drug: Amoxicillin/clavulanic acid (AMC, J01CR02)< br >
Drug group: Beta-lactams/penicillins< br >
%SI: 78.59%< / p >
2019-01-29 20:20:09 +01:00
< table class = "table" >
< thead > < tr class = "header" >
< th align = "left" > < / th >
< th align = "left" > Item< / th >
< th align = "right" > Count< / th >
< th align = "right" > Percent< / th >
< th align = "right" > Cum. Count< / th >
< th align = "right" > Cum. Percent< / th >
< / tr > < / thead >
< tbody >
< tr class = "odd" >
< td align = "left" > 1< / td >
< td align = "left" > S< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 356< / td >
2019-10-13 09:31:58 +02:00
< td align = "right" > 74.01%< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 356< / td >
2019-10-13 09:31:58 +02:00
< td align = "right" > 74.01%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "even" >
< td align = "left" > 2< / td >
< td align = "left" > R< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 103< / td >
2019-10-13 09:31:58 +02:00
< td align = "right" > 21.41%< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 459< / td >
2019-10-13 09:31:58 +02:00
< td align = "right" > 95.43%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< tr class = "odd" >
< td align = "left" > 3< / td >
< td align = "left" > I< / td >
< td align = "right" > 22< / td >
2019-10-13 09:31:58 +02:00
< td align = "right" > 4.57%< / td >
2019-02-09 22:16:24 +01:00
< td align = "right" > 481< / td >
2019-10-13 09:31:58 +02:00
< td align = "right" > 100.00%< / td >
2019-01-29 20:20:09 +01:00
< / tr >
< / tbody >
< / table >
< / div >
2019-11-09 11:33:22 +01:00
< div id = "a-first-glimpse-at-results" class = "section level3" >
< h3 class = "hasAnchor" >
2021-07-23 21:42:11 +02:00
< a href = "#a-first-glimpse-at-results" class = "anchor" aria-hidden = "true" > < / a > A first glimpse at results< / h3 >
2019-11-29 19:43:23 +01:00
< p > An easy < code > ggplot< / code > will already give a lot of information, using the included < code > < a href = "../reference/ggplot_rsi.html" > ggplot_rsi()< / a > < / code > function:< / p >
2021-05-24 15:29:17 +02:00
< div class = "sourceCode" id = "cb6" > < pre class = "downlit sourceCode r" >
< code class = "sourceCode R" > < span class = "va" > data< / span > < span class = "op" > %> %< / span >
2021-07-23 21:42:11 +02:00
< span class = "fu" > < a href = "https://dplyr.tidyverse.org/reference/group_by.html" class = "external-link" > group_by< / a > < / span > < span class = "op" > (< / span > < span class = "va" > Country< / span > < span class = "op" > )< / span > < span class = "op" > %> %< / span >
< span class = "fu" > < a href = "https://dplyr.tidyverse.org/reference/select.html" class = "external-link" > select< / a > < / span > < span class = "op" > (< / span > < span class = "va" > Country< / span > , < span class = "va" > AMP_ND2< / span > , < span class = "va" > AMC_ED20< / span > , < span class = "va" > CAZ_ED10< / span > , < span class = "va" > CIP_ED5< / span > < span class = "op" > )< / span > < span class = "op" > %> %< / span >
2021-05-24 15:29:17 +02:00
< span class = "fu" > < a href = "../reference/ggplot_rsi.html" > ggplot_rsi< / a > < / span > < span class = "op" > (< / span > translate_ab < span class = "op" > =< / span > < span class = "st" > 'ab'< / span > , facet < span class = "op" > =< / span > < span class = "st" > "Country"< / span > , datalabels < span class = "op" > =< / span > < span class = "cn" > FALSE< / span > < span class = "op" > )< / span > < / code > < / pre > < / div >
2019-11-29 19:43:23 +01:00
< p > < img src = "WHONET_files/figure-html/unnamed-chunk-7-1.png" width = "720" > < / p >
2019-01-29 20:20:09 +01:00
< / div >
2019-01-29 00:06:50 +01:00
< / div >
2020-04-13 21:09:56 +02:00
< div class = "col-md-3 hidden-xs hidden-sm" id = "pkgdown-sidebar" >
2019-10-13 09:31:58 +02:00
2019-01-29 00:06:50 +01:00
< / div >
< / div >
2019-10-13 09:31:58 +02:00
2019-01-29 00:06:50 +01:00
< footer > < div class = "copyright" >
2021-07-23 21:42:11 +02:00
< p > < / p >
< p > Developed by < a href = "https://www.rug.nl/staff/m.s.berends/" class = "external-link external-link" > Matthijs S. Berends< / a > , < a href = "https://www.rug.nl/staff/c.f.luz/" class = "external-link external-link" > Christian F. Luz< / a > , < a href = "https://www.rug.nl/staff/a.w.friedrich/" class = "external-link external-link" > Alexander W. Friedrich< / a > , < a href = "https://www.rug.nl/staff/b.sinha/" class = "external-link external-link" > Bhanu N. M. Sinha< / a > , < a href = "https://www.rug.nl/staff/c.j.albers/" class = "external-link external-link" > Casper J. Albers< / a > , < a href = "https://www.rug.nl/staff/c.glasner/" class = "external-link external-link" > Corinna Glasner< / a > .< / p >
2019-01-29 00:06:50 +01:00
< / div >
< div class = "pkgdown" >
2021-07-23 21:42:11 +02:00
< p > < / p >
< p > Site built with < a href = "https://pkgdown.r-lib.org/" class = "external-link external-link" > pkgdown< / a > 1.6.1.9001.< / p >
2019-01-29 00:06:50 +01:00
< / div >
2019-10-13 09:31:58 +02:00
2019-01-29 00:06:50 +01:00
< / footer >
< / div >
2020-02-23 20:56:11 +01:00
2021-07-23 21:42:11 +02:00
2020-02-23 20:56:11 +01:00
< / body >
2019-01-29 00:06:50 +01:00
< / html >