diff --git a/.Rbuildignore b/.Rbuildignore new file mode 100644 index 0000000000000000000000000000000000000000..2eb964e78d89828d32e3ee100aa081858441fdaf --- /dev/null +++ b/.Rbuildignore @@ -0,0 +1,3 @@ +^LICENSE\.md$ +^.*\.Rproj$ +^\.Rproj\.user$ diff --git a/.gitignore b/.gitignore index 4937abda41f9b267ca2a5d24187bdd50a5b0e35f..dd400acfd16607909aafa443e1b0cc9f1c8051ea 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ .Rdata .httr-oauth .DS_Store +inst/doc diff --git a/DESCRIPTION b/DESCRIPTION index 9c12a186200966d41f422c8ba8ea9a4c172930f4..6ea22ca57d659703399eda4221cf0778ccff7971 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -5,8 +5,22 @@ Authors@R: person("First", "Last", , "first.last@example.com", role = c("aut", "cre"), comment = c(ORCID = "YOUR-ORCID-ID")) Description: What the package does (one paragraph). -License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a - license +License: GPL (>= 3) Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.1.2 +Depends: + dplyr, + ggplot2 +Imports: + magrittr, + readxl, + purrr, + slider, + openxlsx, + stringr +Suggests: + rmarkdown, + knitr, + rJava +VignetteBuilder: knitr diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..175443ce8855883fcbf0122a6bfba12ac4cfb49d --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,595 @@ +GNU General Public License +========================== + +_Version 3, 29 June 2007_ +_Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>_ + +Everyone is permitted to copy and distribute verbatim copies of this license +document, but changing it is not allowed. + +## Preamble + +The GNU General Public License is a free, copyleft license for software and other +kinds of works. + +The licenses for most software and other practical works are designed to take away +your freedom to share and change the works. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change all versions of a +program--to make sure it remains free software for all its users. We, the Free +Software Foundation, use the GNU General Public License for most of our software; it +applies also to any other work released this way by its authors. You can apply it to +your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General +Public Licenses are designed to make sure that you have the freedom to distribute +copies of free software (and charge for them if you wish), that you receive source +code or can get it if you want it, that you can change the software or use pieces of +it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or +asking you to surrender the rights. Therefore, you have certain responsibilities if +you distribute copies of the software, or if you modify it: responsibilities to +respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, +you must pass on to the recipients the same freedoms that you received. You must make +sure that they, too, receive or can get the source code. And you must show them these +terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: **(1)** assert +copyright on the software, and **(2)** offer you this License giving you legal permission +to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is +no warranty for this free software. For both users' and authors' sake, the GPL +requires that modified versions be marked as changed, so that their problems will not +be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of +the software inside them, although the manufacturer can do so. This is fundamentally +incompatible with the aim of protecting users' freedom to change the software. The +systematic pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we have designed +this version of the GPL to prohibit the practice for those products. If such problems +arise substantially in other domains, we stand ready to extend this provision to +those domains in future versions of the GPL, as needed to protect the freedom of +users. + +Finally, every program is threatened constantly by software patents. States should +not allow patents to restrict development and use of software on general-purpose +computers, but in those that do, we wish to avoid the special danger that patents +applied to a free program could make it effectively proprietary. To prevent this, the +GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. + +## TERMS AND CONDITIONS + +### 0. Definitions + +“This License” refers to version 3 of the GNU General Public License. + +“Copyright” also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + +“The Program” refers to any copyrightable work licensed under this +License. Each licensee is addressed as “you”. “Licensees” and +“recipients” may be individuals or organizations. + +To “modify” a work means to copy from or adapt all or part of the work in +a fashion requiring copyright permission, other than the making of an exact copy. The +resulting work is called a “modified version” of the earlier work or a +work “based on” the earlier work. + +A “covered work” means either the unmodified Program or a work based on +the Program. + +To “propagate” a work means to do anything with it that, without +permission, would make you directly or secondarily liable for infringement under +applicable copyright law, except executing it on a computer or modifying a private +copy. Propagation includes copying, distribution (with or without modification), +making available to the public, and in some countries other activities as well. + +To “convey” a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through a computer +network, with no transfer of a copy, is not conveying. + +An interactive user interface displays “Appropriate Legal Notices” to the +extent that it includes a convenient and prominently visible feature that **(1)** +displays an appropriate copyright notice, and **(2)** tells the user that there is no +warranty for the work (except to the extent that warranties are provided), that +licensees may convey the work under this License, and how to view a copy of this +License. If the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + +### 1. Source Code + +The “source code” for a work means the preferred form of the work for +making modifications to it. “Object code” means any non-source form of a +work. + +A “Standard Interface” means an interface that either is an official +standard defined by a recognized standards body, or, in the case of interfaces +specified for a particular programming language, one that is widely used among +developers working in that language. + +The “System Libraries” of an executable work include anything, other than +the work as a whole, that **(a)** is included in the normal form of packaging a Major +Component, but which is not part of that Major Component, and **(b)** serves only to +enable use of the work with that Major Component, or to implement a Standard +Interface for which an implementation is available to the public in source code form. +A “Major Component”, in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system (if any) on which +the executable work runs, or a compiler used to produce the work, or an object code +interpreter used to run it. + +The “Corresponding Source” for a work in object code form means all the +source code needed to generate, install, and (for an executable work) run the object +code and to modify the work, including scripts to control those activities. However, +it does not include the work's System Libraries, or general-purpose tools or +generally available free programs which are used unmodified in performing those +activities but which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for the work, and +the source code for shared libraries and dynamically linked subprograms that the work +is specifically designed to require, such as by intimate data communication or +control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate +automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +### 2. Basic Permissions + +All rights granted under this License are granted for the term of copyright on the +Program, and are irrevocable provided the stated conditions are met. This License +explicitly affirms your unlimited permission to run the unmodified Program. The +output from running a covered work is covered by this License only if the output, +given its content, constitutes a covered work. This License acknowledges your rights +of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without +conditions so long as your license otherwise remains in force. You may convey covered +works to others for the sole purpose of having them make modifications exclusively +for you, or provide you with facilities for running those works, provided that you +comply with the terms of this License in conveying all material for which you do not +control copyright. Those thus making or running the covered works for you must do so +exclusively on your behalf, under your direction and control, on terms that prohibit +them from making any copies of your copyrighted material outside their relationship +with you. + +Conveying under any other circumstances is permitted solely under the conditions +stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +### 3. Protecting Users' Legal Rights From Anti-Circumvention Law + +No covered work shall be deemed part of an effective technological measure under any +applicable law fulfilling obligations under article 11 of the WIPO copyright treaty +adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention +of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of +technological measures to the extent such circumvention is effected by exercising +rights under this License with respect to the covered work, and you disclaim any +intention to limit operation or modification of the work as a means of enforcing, +against the work's users, your or third parties' legal rights to forbid circumvention +of technological measures. + +### 4. Conveying Verbatim Copies + +You may convey verbatim copies of the Program's source code as you receive it, in any +medium, provided that you conspicuously and appropriately publish on each copy an +appropriate copyright notice; keep intact all notices stating that this License and +any non-permissive terms added in accord with section 7 apply to the code; keep +intact all notices of the absence of any warranty; and give all recipients a copy of +this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer +support or warranty protection for a fee. + +### 5. Conveying Modified Source Versions + +You may convey a work based on the Program, or the modifications to produce it from +the Program, in the form of source code under the terms of section 4, provided that +you also meet all of these conditions: + +* **a)** The work must carry prominent notices stating that you modified it, and giving a +relevant date. +* **b)** The work must carry prominent notices stating that it is released under this +License and any conditions added under section 7. This requirement modifies the +requirement in section 4 to “keep intact all notices”. +* **c)** You must license the entire work, as a whole, under this License to anyone who +comes into possession of a copy. This License will therefore apply, along with any +applicable section 7 additional terms, to the whole of the work, and all its parts, +regardless of how they are packaged. This License gives no permission to license the +work in any other way, but it does not invalidate such permission if you have +separately received it. +* **d)** If the work has interactive user interfaces, each must display Appropriate Legal +Notices; however, if the Program has interactive interfaces that do not display +Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are +not by their nature extensions of the covered work, and which are not combined with +it such as to form a larger program, in or on a volume of a storage or distribution +medium, is called an “aggregate” if the compilation and its resulting +copyright are not used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work in an aggregate +does not cause this License to apply to the other parts of the aggregate. + +### 6. Conveying Non-Source Forms + +You may convey a covered work in object code form under the terms of sections 4 and +5, provided that you also convey the machine-readable Corresponding Source under the +terms of this License, in one of these ways: + +* **a)** Convey the object code in, or embodied in, a physical product (including a +physical distribution medium), accompanied by the Corresponding Source fixed on a +durable physical medium customarily used for software interchange. +* **b)** Convey the object code in, or embodied in, a physical product (including a +physical distribution medium), accompanied by a written offer, valid for at least +three years and valid for as long as you offer spare parts or customer support for +that product model, to give anyone who possesses the object code either **(1)** a copy of +the Corresponding Source for all the software in the product that is covered by this +License, on a durable physical medium customarily used for software interchange, for +a price no more than your reasonable cost of physically performing this conveying of +source, or **(2)** access to copy the Corresponding Source from a network server at no +charge. +* **c)** Convey individual copies of the object code with a copy of the written offer to +provide the Corresponding Source. This alternative is allowed only occasionally and +noncommercially, and only if you received the object code with such an offer, in +accord with subsection 6b. +* **d)** Convey the object code by offering access from a designated place (gratis or for +a charge), and offer equivalent access to the Corresponding Source in the same way +through the same place at no further charge. You need not require recipients to copy +the Corresponding Source along with the object code. If the place to copy the object +code is a network server, the Corresponding Source may be on a different server +(operated by you or a third party) that supports equivalent copying facilities, +provided you maintain clear directions next to the object code saying where to find +the Corresponding Source. Regardless of what server hosts the Corresponding Source, +you remain obligated to ensure that it is available for as long as needed to satisfy +these requirements. +* **e)** Convey the object code using peer-to-peer transmission, provided you inform +other peers where the object code and Corresponding Source of the work are being +offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the +Corresponding Source as a System Library, need not be included in conveying the +object code work. + +A “User Product” is either **(1)** a “consumer product”, which +means any tangible personal property which is normally used for personal, family, or +household purposes, or **(2)** anything designed or sold for incorporation into a +dwelling. In determining whether a product is a consumer product, doubtful cases +shall be resolved in favor of coverage. For a particular product received by a +particular user, “normally used” refers to a typical or common use of +that class of product, regardless of the status of the particular user or of the way +in which the particular user actually uses, or expects or is expected to use, the +product. A product is a consumer product regardless of whether the product has +substantial commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + +“Installation Information” for a User Product means any methods, +procedures, authorization keys, or other information required to install and execute +modified versions of a covered work in that User Product from a modified version of +its Corresponding Source. The information must suffice to ensure that the continued +functioning of the modified object code is in no case prevented or interfered with +solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for +use in, a User Product, and the conveying occurs as part of a transaction in which +the right of possession and use of the User Product is transferred to the recipient +in perpetuity or for a fixed term (regardless of how the transaction is +characterized), the Corresponding Source conveyed under this section must be +accompanied by the Installation Information. But this requirement does not apply if +neither you nor any third party retains the ability to install modified object code +on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to +continue to provide support service, warranty, or updates for a work that has been +modified or installed by the recipient, or for the User Product in which it has been +modified or installed. Access to a network may be denied when the modification itself +materially and adversely affects the operation of the network or violates the rules +and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with +this section must be in a format that is publicly documented (and with an +implementation available to the public in source code form), and must require no +special password or key for unpacking, reading or copying. + +### 7. Additional Terms + +“Additional permissions” are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. Additional +permissions that are applicable to the entire Program shall be treated as though they +were included in this License, to the extent that they are valid under applicable +law. If additional permissions apply only to part of the Program, that part may be +used separately under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any +additional permissions from that copy, or from any part of it. (Additional +permissions may be written to require their own removal in certain cases when you +modify the work.) You may place additional permissions on material, added by you to a +covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a +covered work, you may (if authorized by the copyright holders of that material) +supplement the terms of this License with terms: + +* **a)** Disclaiming warranty or limiting liability differently from the terms of +sections 15 and 16 of this License; or +* **b)** Requiring preservation of specified reasonable legal notices or author +attributions in that material or in the Appropriate Legal Notices displayed by works +containing it; or +* **c)** Prohibiting misrepresentation of the origin of that material, or requiring that +modified versions of such material be marked in reasonable ways as different from the +original version; or +* **d)** Limiting the use for publicity purposes of names of licensors or authors of the +material; or +* **e)** Declining to grant rights under trademark law for use of some trade names, +trademarks, or service marks; or +* **f)** Requiring indemnification of licensors and authors of that material by anyone +who conveys the material (or modified versions of it) with contractual assumptions of +liability to the recipient, for any liability that these contractual assumptions +directly impose on those licensors and authors. + +All other non-permissive additional terms are considered “further +restrictions” within the meaning of section 10. If the Program as you received +it, or any part of it, contains a notice stating that it is governed by this License +along with a term that is a further restriction, you may remove that term. If a +license document contains a further restriction but permits relicensing or conveying +under this License, you may add to a covered work material governed by the terms of +that license document, provided that the further restriction does not survive such +relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in +the relevant source files, a statement of the additional terms that apply to those +files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a +separately written license, or stated as exceptions; the above requirements apply +either way. + +### 8. Termination + +You may not propagate or modify a covered work except as expressly provided under +this License. Any attempt otherwise to propagate or modify it is void, and will +automatically terminate your rights under this License (including any patent licenses +granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a +particular copyright holder is reinstated **(a)** provisionally, unless and until the +copyright holder explicitly and finally terminates your license, and **(b)** permanently, +if the copyright holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently +if the copyright holder notifies you of the violation by some reasonable means, this +is the first time you have received notice of violation of this License (for any +work) from that copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of +parties who have received copies or rights from you under this License. If your +rights have been terminated and not permanently reinstated, you do not qualify to +receive new licenses for the same material under section 10. + +### 9. Acceptance Not Required for Having Copies + +You are not required to accept this License in order to receive or run a copy of the +Program. Ancillary propagation of a covered work occurring solely as a consequence of +using peer-to-peer transmission to receive a copy likewise does not require +acceptance. However, nothing other than this License grants you permission to +propagate or modify any covered work. These actions infringe copyright if you do not +accept this License. Therefore, by modifying or propagating a covered work, you +indicate your acceptance of this License to do so. + +### 10. Automatic Licensing of Downstream Recipients + +Each time you convey a covered work, the recipient automatically receives a license +from the original licensors, to run, modify and propagate that work, subject to this +License. You are not responsible for enforcing compliance by third parties with this +License. + +An “entity transaction” is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an organization, or +merging organizations. If propagation of a covered work results from an entity +transaction, each party to that transaction who receives a copy of the work also +receives whatever licenses to the work the party's predecessor in interest had or +could give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if the predecessor +has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or +affirmed under this License. For example, you may not impose a license fee, royalty, +or other charge for exercise of rights granted under this License, and you may not +initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging +that any patent claim is infringed by making, using, selling, offering for sale, or +importing the Program or any portion of it. + +### 11. Patents + +A “contributor” is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The work thus +licensed is called the contributor's “contributor version”. + +A contributor's “essential patent claims” are all patent claims owned or +controlled by the contributor, whether already acquired or hereafter acquired, that +would be infringed by some manner, permitted by this License, of making, using, or +selling its contributor version, but do not include claims that would be infringed +only as a consequence of further modification of the contributor version. For +purposes of this definition, “control” includes the right to grant patent +sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license +under the contributor's essential patent claims, to make, use, sell, offer for sale, +import and otherwise run, modify and propagate the contents of its contributor +version. + +In the following three paragraphs, a “patent license” is any express +agreement or commitment, however denominated, not to enforce a patent (such as an +express permission to practice a patent or covenant not to sue for patent +infringement). To “grant” such a patent license to a party means to make +such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the +Corresponding Source of the work is not available for anyone to copy, free of charge +and under the terms of this License, through a publicly available network server or +other readily accessible means, then you must either **(1)** cause the Corresponding +Source to be so available, or **(2)** arrange to deprive yourself of the benefit of the +patent license for this particular work, or **(3)** arrange, in a manner consistent with +the requirements of this License, to extend the patent license to downstream +recipients. “Knowingly relying” means you have actual knowledge that, but +for the patent license, your conveying the covered work in a country, or your +recipient's use of the covered work in a country, would infringe one or more +identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you +convey, or propagate by procuring conveyance of, a covered work, and grant a patent +license to some of the parties receiving the covered work authorizing them to use, +propagate, modify or convey a specific copy of the covered work, then the patent +license you grant is automatically extended to all recipients of the covered work and +works based on it. + +A patent license is “discriminatory” if it does not include within the +scope of its coverage, prohibits the exercise of, or is conditioned on the +non-exercise of one or more of the rights that are specifically granted under this +License. You may not convey a covered work if you are a party to an arrangement with +a third party that is in the business of distributing software, under which you make +payment to the third party based on the extent of your activity of conveying the +work, and under which the third party grants, to any of the parties who would receive +the covered work from you, a discriminatory patent license **(a)** in connection with +copies of the covered work conveyed by you (or copies made from those copies), or **(b)** +primarily for and in connection with specific products or compilations that contain +the covered work, unless you entered into that arrangement, or that patent license +was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied +license or other defenses to infringement that may otherwise be available to you +under applicable patent law. + +### 12. No Surrender of Others' Freedom + +If conditions are imposed on you (whether by court order, agreement or otherwise) +that contradict the conditions of this License, they do not excuse you from the +conditions of this License. If you cannot convey a covered work so as to satisfy +simultaneously your obligations under this License and any other pertinent +obligations, then as a consequence you may not convey it at all. For example, if you +agree to terms that obligate you to collect a royalty for further conveying from +those to whom you convey the Program, the only way you could satisfy both those terms +and this License would be to refrain entirely from conveying the Program. + +### 13. Use with the GNU Affero General Public License + +Notwithstanding any other provision of this License, you have permission to link or +combine any covered work with a work licensed under version 3 of the GNU Affero +General Public License into a single combined work, and to convey the resulting work. +The terms of this License will continue to apply to the part which is the covered +work, but the special requirements of the GNU Affero General Public License, section +13, concerning interaction through a network will apply to the combination as such. + +### 14. Revised Versions of this License + +The Free Software Foundation may publish revised and/or new versions of the GNU +General Public License from time to time. Such new versions will be similar in spirit +to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that +a certain numbered version of the GNU General Public License “or any later +version” applies to it, you have the option of following the terms and +conditions either of that numbered version or of any later version published by the +Free Software Foundation. If the Program does not specify a version number of the GNU +General Public License, you may choose any version ever published by the Free +Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU +General Public License can be used, that proxy's public statement of acceptance of a +version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no +additional obligations are imposed on any author or copyright holder as a result of +your choosing to follow a later version. + +### 15. Disclaimer of Warranty + +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER +EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE +QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE +DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +### 16. Limitation of Liability + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY +COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS +PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, +INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE +OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE +WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + +### 17. Interpretation of Sections 15 and 16 + +If the disclaimer of warranty and limitation of liability provided above cannot be +given local legal effect according to their terms, reviewing courts shall apply local +law that most closely approximates an absolute waiver of all civil liability in +connection with the Program, unless a warranty or assumption of liability accompanies +a copy of the Program in return for a fee. + +_END OF TERMS AND CONDITIONS_ + +## How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to +the public, the best way to achieve this is to make it free software which everyone +can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them +to the start of each source file to most effectively state the exclusion of warranty; +and each file should have at least the “copyright” line and a pointer to +where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + +If the program does terminal interaction, make it output a short notice like this +when it starts in an interactive mode: + + <program> Copyright (C) <year> <name of author> + This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type 'show c' for details. + +The hypothetical commands `show w` and `show c` should show the appropriate parts of +the General Public License. Of course, your program's commands might be different; +for a GUI interface, you would use an “about box”. + +You should also get your employer (if you work as a programmer) or school, if any, to +sign a “copyright disclaimer” for the program, if necessary. For more +information on this, and how to apply and follow the GNU GPL, see +<<http://www.gnu.org/licenses/>>. + +The GNU General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may consider it +more useful to permit linking proprietary applications with the library. If this is +what you want to do, use the GNU Lesser General Public License instead of this +License. But first, please read +<<http://www.gnu.org/philosophy/why-not-lgpl.html>>. diff --git a/NAMESPACE b/NAMESPACE index 6ae926839dd1829f1016a96f766d970ff184ad97..107ee5e33f8afc00531f6a9d58e6a72adf400f82 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,2 +1,14 @@ # Generated by roxygen2: do not edit by hand +export("%>%") +export(calc_hour_diffs) +export(o2_bas) +export(o2_corr_factors) +export(o2_corr_fct) +export(o2_meas_time) +export(o2_process_from_table1) +export(o2_raw_date) +export(o2_read_machine_file) +export(plot_1cmic) +export(reformat_weish) +importFrom(magrittr,"%>%") diff --git a/R/calculating.R b/R/calculating.R new file mode 100644 index 0000000000000000000000000000000000000000..0765a986a9981b0a989751edcd8e38a80a8b8310 --- /dev/null +++ b/R/calculating.R @@ -0,0 +1,668 @@ + + +#' O2 machine factors +#' +#' @return tibble of factors +#' @export +o2_corr_factors <- function() { + + tibble::tribble( + ~device, ~meas_type, ~from_seq, ~to_seq, ~factor, ~file_ext, + "EMIL", "bas", 1, 8227, 1, ".log", + "EMIL", "bas", 8228, 1e+07, 1, ".csv", + "EMIL", "mic", 1, 8227, 1, ".log", + "EMIL", "mic", 8228, 1e+07, 1, ".csv", + "KLAUS", "bas", 1, 6629, 0.976062491, ".log", + "KLAUS", "bas", 6630, 1e+07, 1, ".csv", + "KLAUS", "mic", 1, 6629, 0.987520843, ".log", + "KLAUS", "mic", 6630, 1e+07, 1, ".csv", + "KARL", "bas", 1, 4260, 1.454178379, ".txt", + "KARL", "bas", 4261, 1e+07, 1, ".csv", + "KARL", "mic", 1, 4260, 1.564204231, ".txt", + "KARL", "mic", 4261, 1e+07, 1, ".csv", + "DIETER", "bas", 1, 5190, 1.490347018, ".txt", + "DIETER", "bas", 5191, 1e+07, 1, ".csv", + "DIETER", "mic", 1, 5190, 1.545151676, ".txt", + "DIETER", "mic", 5191, 1e+07, 1, ".csv" + ) + + +} + + +#' Title +#' +#' @param dev +#' @param seq +#' @param meas +#' +#' @return +#' @export +#' +#' @examples +o2_corr_fct <- function(dev, seq, meas) { + + df <- o2_corr_factors() %>% dplyr::filter(device == dev, + meas_type == meas) + + right_row <- which(slider::slide_lgl(df, ~ dplyr::between(seq, .x$from_seq, .x$to_seq))) + + stopifnot(length(right_row) == 1) + + df %>% dplyr::slice(right_row) %>% dplyr::pull(factor) + +} + + +#' Process O2 table +#' +#' The function looks for the raw data files in the same directory +#' +#' @param w_file +#' @param plot +#' +#' @return tibble +#' @export +#' +#' @examples +o2_process_from_table1 <- function(w_file, raw_files = "from_wei", combine_names = "_", plot = FALSE) { + #w_file <- weighing_files[3] + # w_file <- path + # raw_files = "from_wei"; combine_names = "_"; plot = FALSE + # w_file <- files[1] + + message("Processing ", basename(w_file)) + + w_file0 <- w_file + w_dir <- dirname(w_file) + + #how many worksheets + # TODO add reading method for different templates + # + if (length(readxl::excel_sheets(w_file)) > 1){ + + message(basename(w_file), " had too many worksheets. It was skipped.") + + return(NULL) + } + + #read weighing sheet + suppressMessages( + weights_check <- readxl::read_xlsx(w_file, sheet = 1, col_names = FALSE, na = c("NA", ""), col_types = "text") + ) + + # starting row + st_row <- which(weights_check[,1] == "idSequence") + + # fix n/a + as.num_na <- function(x) { + + x %>% stringr::str_replace("n/a", NA_character_) %>% as.numeric + + } + + weights0 <- readxl::read_xlsx(w_file, col_types = "text", skip = st_row - 1) %>% + dplyr::slice(-1) %>% + dplyr::mutate(across(c(`Container empty [g]`:`Container + Sample dry weight [g]`, + `Glucose / sample [mg]`, `Water added / sample [ml]`, starts_with("BAS_st")), as.num_na)) + + # purrr::map_dfc(~parse_guess(.x)) #better to specify, but could guess using this + + # fiddle selection + column names + weights <- weights0 %>% + dplyr::mutate(weight_file = w_file0, + bas_file = weights_check[3,3], + cmic_file = weights_check[4,3]) %>% + dplyr::select(idSequence, + channel = Channel, + device = Device, + name1 = `Sample name 1`, + name2 = `Sample name 2`, + name3 = `Sample name 3`, + weight_file, + bas_file, + cmic_file, + wei_cont_empty = `Container empty [g]`, + wei_sample_fresh = `Sample fresh weight [g]`, + wei_cont_plus_samp_dry = `Container + Sample dry weight [g]`, + soil_type = `Soil type`, + glucose = `Glucose / sample [mg]`, + water_added = `Water added / sample [ml]`, + date_sampling = `Date sampling`, + comment = Comments, + bas_start = BAS_start, + bas_stop = BAS_stop) %>% + dplyr::mutate(name_c = combine_name(name1, name2, name3, combine_names), + .after = name3) + + # TODO fix site names to remove NAs + + + # Dry weight calculation, equivalent to first tab of Excel file + weights <- weights %>% + dplyr::mutate( + # Container + sample fresh weight [g] + wei_cont_plus_samp_fresh = wei_cont_empty + wei_sample_fresh, + # Weighted sample dry weight [g] + wei_samp_dry = wei_cont_plus_samp_dry - wei_cont_empty, + # H2O in sample [g] + h2o_samp = wei_sample_fresh - wei_samp_dry, + # H2O of fresh weight [%] + h2o_perc = h2o_samp*100 / wei_sample_fresh + ) + + + # Machine measurement files ----------------------------------------------- + + # raw_files extracted from weighing sheet, in same dir or provided as list + + # find raw file paths + if (raw_files == "from_wei") { + + raw_paths <- extract_raw_path1(file = w_file) + + bas_path <- file.path(w_dir, raw_paths[1]) + + cmic_path <- file.path(w_dir, raw_paths[2]) + + if (is.na(raw_paths[1]) || !file.exists(bas_path)) { + warning(basename(bas_path), " was not found. BAS cannot be calculated.") + bas_path <- NA + } + + if (is.na(raw_paths[2]) || !file.exists(cmic_path)) { + warning(basename(cmic_path), " was not found. CMIC cannot be calculated.") + cmic_path <- NA + } + + + } else if (raw_files == "matching_names") { + + bas_path <- list.files(w_dir, stringr::str_replace(basename(w_file), "w_", "bas_") %>% stringr::str_remove(".xlsx")) + if (!assertthat::is.string(bas_path)) { + warning(basename(bas_path), " was not found. BAS cannot be calculated.") + bas_path <- NA + + } + + cmic_path <- list.files(w_dir, stringr::str_replace(basename(w_file), "w_", "mic_") %>% stringr::str_remove(".xlsx")) + if (!assertthat::is.string(cmic_path)) { + warning(basename(cmic_path), " was not found. CMIC cannot be calculated.") + cmic_path <- NA + } + + } else { + + stop("Method for 'raw_files' not yet implemented.") + + } + + # read raw files + + bas_raw0 <- o2_read_machine_file(bas_path) + cmic_raw0 <- o2_read_machine_file(cmic_path) + + # dates + date_bas <- as.Date(bas_raw0[1, "Date", drop=T], format = "%d.%m.%y") + date_cmic <- as.Date(cmic_raw0[1, "Date", drop=T], format = "%d.%m.%y") + + + # Process measurements as in Excel sheet ---------------------------------- + + weights2 <- weights %>% dplyr::mutate(bas_raw = bas_raw0 %>% dplyr::select(-c(1,2)) %>% purrr::map(~.x), + cmic_raw = cmic_raw0 %>% dplyr::select(-c(1,2)) %>% purrr::map(~.x), + date_bas_meas = date_bas, + date_cmic_meas = date_cmic) + + + # add all colums from O2 measurements + weights2 <- weights2 %>% o2_calc_all(plot = plot) + + + # Remove empty rows + to_rm <- weights2 %>% dplyr::select(name1, name2, name3, wei_cont_empty, wei_sample_fresh, wei_cont_plus_samp_dry) %>% + slider::slide_lgl(~all(is.na(.x))) + + weights2 %>% dplyr::filter(!to_rm) + + +} + + +o2_process_all <- function(files, raw_files = "from_wei", combine_names = "_", plot = FALSE) { + + purrr::map_dfr(files, o2_process_from_table1, raw_files = raw_files, combine_names = combine_names, plot = plot) + +} + +combine_name <- function(n1, n2, n3, symbol = "_") { + + make_name <- function(names) { + + if (all(is.na(names))) { + return(NA_character_) + } + + cnam <- NULL + + if (!is.na(names[1])) { + cnam <- names[1] + } + + if (!all(is.na(names[2:3]))) { + + cnam <- paste0(cnam, symbol) + + if (!is.na(names[2])) { + cnam <- paste0(cnam, names[2]) + } + + if (!is.na(names[3])) { + + cnam <- paste0(cnam, symbol, names[2]) + + } + + } + + cnam + } + + list(n1, n2, n3) %>% + purrr::transpose() %>% + purrr::simplify_all() %>% + purrr::map_chr(make_name) + +} + + + + +o2_calc_all <- function(data, plot = FALSE) { + data %>% o2_bas(plot = plot) %>% o2_cmic(plot = plot) %>% + dplyr::mutate(qo2 = basal / cmic) %>% + o2_mgrowth(plot = plot) +} + + + +# assumes columns wei_samp_dry, bas_raw(list), bas_start, bas_stop +#' Title +#' +#' @param data +#' @param plot +#' @param only_sets logical if TRUE will only recalculate basal measurements for entries that have bas_set value +#' +#' @return +#' @export +#' +#' @examples +o2_bas <- function(data, plot = FALSE, only_sets = FALSE) { + # data <- weights2 + + # subset: weird implementation but works + # only recompute for non-na bas_set + + only_sets <- only_sets && "bas_set" %in% names(data) + + if (only_sets) { + + # FIX name_c might not be unique, machine x seq has to be unique, should use that instead! + + nam_aft <- which(names(data) == "name_c") + + name_cs <- data %>% dplyr::select(name_c) + others <- data %>% dplyr::filter(is.na(data$bas_set)) + + data <- data %>% dplyr::filter(!is.na(data$bas_set)) + + } + + + # add machine correction factor + data <- data %>% dplyr::mutate(bas_corfct = purrr::map2_dbl(device, idSequence, ~ o2_corr_fct(.x, .y, meas = "bas")), + bas_raw_st = purrr::map2(bas_raw, bas_corfct, ~ .x * .y)) + + + # multiply by ratio already + data2 <- data %>% dplyr::mutate(bas_diff = purrr::map2(bas_raw_st, wei_samp_dry, ~ (calc_hour_diffs(.x) * .83) / .y * 0.7)) + + + # take mean for chosen period + # or specified values if given in bas_set + calc_bas_mean <- function(data) { + + sel_diffs <- get_diffs(data) + + mean(sel_diffs, na.rm = TRUE) + + } + + # coefficient of variation + calc_bas_cova <- function(data) { + + sel_diffs <- get_diffs(data) + + bas_mean <- mean(sel_diffs, na.rm = TRUE) + + bas_sd <- sd(sel_diffs, na.rm = TRUE) + + bas_sd/bas_mean + + } + + get_diffs <- function(data) { + + #select + sel_times <- if ("bas_set" %in% names(data) && !is.na(data$bas_set)) { + data$bas_set[[1]] + + } else { + + if (is.na(data$bas_start)) { + + # TODO add generic message at the right position. Not for each row. + # message("bas_start is not specified. Default value of 10 is used.") + data$bas_start <- 10 + + } + + if (is.na(data$bas_stop)) { + + # message("bas_stop is not specified. Default value of 20 is used.") + data$bas_stop <- 20 + + } + + data$bas_start:data$bas_stop + + } + + data$bas_diff[[1]][sel_times] + + } + + + # DEBUGGING + # calc_bas_mean(data = data2[15,]) + # slider::slide2_dbl(data2, 1:nrow(data2), ~{print(.y); calc_bas_mean(.x)}) + + + data2 <- data2 %>% dplyr::mutate(basal = slider::slide_dbl(., calc_bas_mean), + bas_cova = slider::slide_dbl(., calc_bas_cova)) + + data2 <- data2 %>% dplyr::mutate(pulse_bas_max = purrr::map_dbl(bas_raw, ~calc_hour_diffs(.x)[2:length(.x)] %>% max(na.rm = TRUE)), + pulse_bas_test = dplyr::if_else(pulse_bas_max > 599, "ERROR PULSE", "OK")) + + # put back together + + if (only_sets) { + + data2 <- left_join(name_cs, bind_rows(others, data2), by = "name_c") + data2 <- data2 %>% relocate("name_c", .after = all_of(nam_aft)) + + } + + + if (plot) { + + data2 <- data2 %>% dplyr::mutate(bas_plot = slider::slide(., plot_1bas)) + + } + + data2 + +} + + +o2_cmic <- function(data, plot = FALSE, only_sets = FALSE) { + # data <- summary + + only_sets <- only_sets && "cmic_set" %in% names(data) + + if (only_sets) { + + nam_aft <- which(names(data) == "name_c") + + name_cs <- data %>% dplyr::select(name_c) + others <- data %>% dplyr::filter(is.na(data$cmic_set)) + + data <- data %>% dplyr::filter(!is.na(data$cmic_set)) + + } + + + # add machine correction factor + data <- data %>% dplyr::mutate(cmic_corfct = purrr::map2_dbl(device, idSequence, ~ o2_corr_fct(.x, .y, meas = "mic")), + cmic_raw_st = purrr::map2(cmic_raw, cmic_corfct, ~ .x * .y)) + + # NOTE mutiplied by ratio + data2 <- data %>% dplyr::mutate(cmic_diff = purrr::map2(cmic_raw_st, wei_samp_dry, ~(calc_hour_diffs(.x) * .83) / .y)) + + + # for 1 row, get 3 values for cmic calc + get_cmic_vals <- function(data) { + + data$cmic_diff[[1]][data$cmic_times[[1]]] * 0.7 * 38 + + } + + calc_cmic_mean <- function(data) { + + mean(get_cmic_vals(data)) + + } + + # for 1 row + calc_cmic_cova <- function(data) { + + vals <- get_cmic_vals(data) + + sd(vals) / mean(vals) + + } + + + # find 3 times for cmic calc + find_cmic_times <- function(data) { + + if ("cmic_set" %in% names(data) && !is.na(data$cmic_set)) { + + data$cmic_set[[1]] + + } else { + + diffs <- data$cmic_diff[[1]] + + if(all(is.na(diffs))) return(NA) + + # calc moving average of 3 points for 3-5 to 8-10, take min + mirr_means <- purrr::map_dbl(3:8, ~mean(diffs[.x:(.x+2)])) + + whmin <- which.min(mirr_means) + 2 + + whmin:(whmin+2) + + } + + } + + data2 <- data2 %>% dplyr::mutate(cmic_times = slider::slide(., find_cmic_times)) %>% + dplyr::mutate(cmic = slider::slide_dbl(., calc_cmic_mean), + cmic_cova = slider::slide_dbl(., calc_cmic_cova)) + + + # pulse test + data2 <- data2 %>% dplyr::mutate(pulse_cmic_max = purrr::map_dbl(cmic_raw, ~calc_hour_diffs(.x)[2:20] %>% max(na.rm = TRUE)), + pulse_cmic_test = dplyr::if_else(pulse_cmic_max > 599, "ERROR PULSE", "OK")) + + if (only_sets) { + + data2 <- left_join(name_cs, bind_rows(others, data2), by = "name_c") + data2 <- data2 %>% relocate("name_c", .after = all_of(nam_aft)) + + } + + if (plot) { + + data2 <- data2 %>% dplyr::mutate(cmic_plot = slider::slide(., plot_1bas)) + + } + + data2 + +} + + +# microbial growth +# slope of the log values CMIC hours 5 to 24? + +# summary %>% dplyr::slice(1:10) %>% slide(plot_1cmic) %>% plot_grid(plotlist = .) + + +# for one row +# return +#' Title +#' +#' @param data +#' +#' @return only values +#' @export +#' +#' @examples +sel_mgrowth_df <- function(data) { + + # print(data$name_c) + + cmic_df0 <- tibble(mirr_d = data$cmic_diff[[1]], + time = seq_along(mirr_d), + cmic_d = mirr_d * 0.7 * 38, + incr = cmic_d - lag(cmic_d), + incr2 = incr - lag(incr), + cmic_log = log10(cmic_d)) %>% + dplyr::filter(time < 20, time >3) + + cmic_df <- cmic_df0 + + + # start at mirr + cmic_df <- cmic_df %>% dplyr::filter(time >= min(data$cmic_times[[1]])) + + + # remove decreasing tail values + # last increasing value + if (all(cmic_df$incr <= 0)) return(NA) + + until <- max(which(cmic_df$incr > 0)) + + cmic_df <- cmic_df %>% dplyr::slice(seq_len(until)) + + if(nrow(cmic_df) < 3) return(NA) + + + # remove decreasing head values + # first increasing value + from <- min(which(cmic_df$incr > 0)) + + if (from >= 3) { + cmic_df <- cmic_df %>% dplyr::slice(-seq_len(from-2)) + + } + + + # stop if many decreasing values + ch_incr <- cmic_df$incr >= 0 + + # decreasing 3 times in a row + fx3 <- slider::slide_lgl(ch_incr, ~ all(!.x), + .after = 2) %>% + {.[1:(length(.) - 2)]} + + if (any(fx3)) { + + first_fx3 <- min(which(fx3)) + cmic_df <- cmic_df %>% dplyr::slice(seq_len(first_fx3)) + + } + + + # mod <- lm(cmic_log ~ time, cmic_df) + # with(cmic_df, qplot(time, incr)) + + + # take until second increment = 0 (inflection point) + # meaning the increment stopped increasing + + mod_incr <- lm(data = cmic_df, incr2 ~ time) + coefs <- mod_incr$coefficients + + + # remove retardation period + if (coefs[2] < 0) { + + # 0 - b / a = x + zero <- - coefs[1] / coefs[2] + + if (zero > 12) { + + cmic_df <- cmic_df %>% dplyr::filter(time <= zero) + + } else { + # remove tail + cmic_df <- cmic_df %>% dplyr::filter(time <= 12) + + } + } + + # TODO return all values, with mgrow selection indicated + + # return cmic_df table + if(nrow(cmic_df) < 3) { + return(NA) + + } else { + cmic_df + + } + +} + + + + +o2_mgrowth <- function(data, plot = FALSE) { + # data <- summary[2,] + # TODO get mirr times from cmic calculated to define first values used + + data2 <- data %>% dplyr::mutate(mgrow_df = slider::slide(., sel_mgrowth_df)) + + calc_mgrowth <- function(data) { + + if (is.atomic(data) && (length(data) == 1) && is.na(data)) { + + NA + + } else { + coef(lm(cmic_log ~ time, data = data))[2] + + } + + } + + data2 <- data2 %>% dplyr::mutate(mgrowth = purrr::map_dbl(mgrow_df, calc_mgrowth)) + + if (plot) { + + data2 <- data2 %>% dplyr::mutate(mgrow_plot = slider::slide(., plot_1mgrowth)) + + } + + data2 + +} + + + + + + diff --git a/R/plotting.R b/R/plotting.R new file mode 100644 index 0000000000000000000000000000000000000000..0d7c8a6ccb9a7f05952e9737a2edc1f6447dc5dc --- /dev/null +++ b/R/plotting.R @@ -0,0 +1,238 @@ + +# TODO maybe add the plotting functions directly inside the main functions +# + +plot_1bas <- function(data, threshold = 3.2) { + + bas_df <- tibble(bas_d = data$bas_diff[[1]], + time = seq_along(bas_d)) + + + sel_times <- if ("bas_set" %in% names(data) && !is.na(data$bas_set)) { + data$bas_set[[1]] + + } else { + data$bas_start:data$bas_stop + + } + + bas_sub <- bas_df %>% filter(time %in% sel_times) + + bmean <- bas_sub %>% pull(bas_d) %>% mean + bsd <- bas_sub %>% pull(bas_d) %>% sd + + ggplot(bas_df, aes(time, bas_d))+ + annotate(geom = "rect", xmin = min(bas_sub$time), xmax = max(bas_sub$time), + ymin = -Inf, ymax = Inf, + fill = "grey", alpha = 0.35)+ + geom_line(size = 0.25)+ + geom_point(size = 0.05)+ + geom_point(data = bas_sub, size = 0.4)+ + annotate("errorbarh", xmin = min(bas_sub$time), xmax = max(bas_sub$time), y = bmean, height = bsd, + color = "blue", size = 0.25)+ + ggtitle(data$name_c, + paste0(stringr::str_sub(data$device, 1, 3), "-", data$idSequence, " (CV = ", data$bas_cova %>% round(3), ")"))+ + labs(x = NULL, y = NULL)+ + theme(plot.title = element_text(size = 11, face = "bold"), + plot.subtitle = element_text(size = 9))+ + theme_bw()+ + if(max(bas_df$bas_d) < threshold) { + ylim(0, threshold) + } else { + list(ylim(0, NA), + annotate(geom = "text", x = 0, y = max(bas_df$bas_d), vjust = 1, label = "*")) + } + +} + + + +#' Create one plot of Cmic +#' +#' @param data +#' +#' @return ggplot object +#' @export +plot_1cmic <- function(data) { + # data <- summary[1,] + + cmic_df <- tibble(mirr_d = data$cmic_diff[[1]], + time = seq_along(mirr_d), + cmic_d = mirr_d * 0.7 * 38) %>% + filter(time < 25) + + + sel_times <- if ("cmic_set" %in% names(data) && !is.na(data$cmic_set)) { + data$cmic_set[[1]] + + } else { + + mirr_means <- purrr::map_dbl(3:8, ~mean(cmic_df$cmic_d[.x:(.x+2)])) + + whmimi <- which.min(mirr_means) + 2 + + whmimi:(whmimi + 2) + + } + + cmic_sub <- cmic_df %>% dplyr::filter(time %in% sel_times) + + cmic_mean <- cmic_sub$cmic_d %>% mean + + cmic_sd <- cmic_sub$cmic_d %>% sd + + ggplot(cmic_df, aes(time, cmic_d))+ + annotate(geom = "rect", xmin = 3, xmax = 10, + ymin = -Inf, ymax = Inf, + fill = "grey80", alpha = 0.35)+ + annotate(geom = "rect", xmin = min(cmic_sub$time), xmax = max(cmic_sub$time), + ymin = -Inf, ymax = Inf, + fill = "grey65", alpha = 0.35)+ + + geom_line(size = 0.25)+ + geom_point(size = 0.05)+ + geom_point(data = cmic_sub, size = 0.4)+ + annotate("errorbarh", xmin = min(cmic_sub$time), xmax = max(cmic_sub$time), y = cmic_mean, height = cmic_sd, + color = "blue", size = 0.25)+ + ggtitle(data$name_c, + paste0(stringr::str_sub(data$device, 1, 3), "-", data$idSequence))+ # " (CV = ", data$cmic_cova %>% round(3), ")" + labs(x = NULL, y = NULL)+ + theme(plot.title = element_text(size = 11, face = "bold"), + plot.subtitle = element_text(size = 9))+ + ylim(0, NA)+ + theme_bw() + +} + + + + +#' Create 1 mgrowth plot +#' +#' @param data +#' +#' @return +#' @export +plot_1mgrowth <- function(data) { + + mgr <- data$mgrow_df[[1]] + class(mgr) + + + if (inherits(mgr, "data.frame")) { + + ggplot(mgr, aes(time, cmic_log)) + + annotate(geom = "rect", xmin = min(mgr$time), xmax = max(mgr$time), + ymin = -Inf, ymax = Inf, + fill = "grey80", alpha = 0.35)+ + geom_line(size = 0.25) + + geom_point(size = 0.05)+ + # geom_point(data = cmic_df0, size = 0.4)+ + # geom_line(aes(time, incr), color = "red") + geom_smooth(data = mgr, method = "lm", size = 0.3, + formula = y ~ x) + + ggtitle(data$name_c, + paste0(stringr::str_sub(data$device, 1, 3), "-", data$idSequence))+ + labs(x = NULL, y = NULL)+ + theme(plot.title = element_text(size = 11, face = "bold"), + plot.subtitle = element_text(size = 9))+ + xlim(0, NA)+ + ylim(0, NA)+ + theme_bw() + + } else { + NULL + + } + +} + + +#' Create report +#' +#' Can be used with each specific measurement of basal, cmic and mgrowth +#' +#' @param data +#' @param file +#' +#' @return +#' @export +#' +#' @examples +#' o2meas %>% +#' bas_report("bas.pdf") %>% +#' cmic_report("cmic.pdf") %>% +#' mgrow_report("mgrow.pdf") +bas_report <- function(data, file) { + + if ("bas_plot" %in% names(data)) { + + plots <- data %>% pull(bas_plot) + + } else { + + plots <- slider::slide(data, plot_1bas) + + } + + export_report(plots, file) + + data + +} + +cmic_report <- function(data, file) { + + if ("cmic_plot" %in% names(data)) { + + plots <- data %>% pull(cmic_plot) + + } else { + + plots <- slider::slide(data, plot_1cmic) + + } + + export_report(plots, file) + + data + +} + +mgrow_report <- function(data, file) { + + if("mgro_plot" %in% names(data)) { + + plots <- data %>% pull(mgro_plot) + + } else { + + plots <- slider::slide(data, plot_1mgrowth) + plots <- plots[!purrr::map_lgl(plots, is.null)] + + + } + + export_report(plots, file) + + data + +} + + +export_report <- function(plots, file, plots_per_page = 24) { + + pl_c <- floor(sqrt(plots_per_page * 0.75)) + + pl_r <- plots_per_page / pl_c + + splots <- split(plots, ceiling(seq_along(plots)/plots_per_page)) + + sp2 <- purrr::map(splots, ~ cowplot::plot_grid(plotlist = .x, nrow = pl_r, ncol = pl_c)) + + ggsave(filename = file, + plot = gridExtra::marrangeGrob(grobs = sp2, nrow=1, ncol=1, left = "BAS", bottom = "time"), + width = 210, height = 297, + units = "mm") + +} diff --git a/R/reading_writing.R b/R/reading_writing.R new file mode 100644 index 0000000000000000000000000000000000000000..406b89b27972331832e6462449f13a5a62374aa2 --- /dev/null +++ b/R/reading_writing.R @@ -0,0 +1,285 @@ + + + + +#' Read Machine File +#' +#' +#' +#' @param path to the file +#' +#' @return +#' @export +o2_read_machine_file <- function(path) { + # path <- bas_path + + # no path provided + if (is.na(path)) { + # files_all$BAS_file[files_all$weighing_sheet == basename(w_file)] <- "Error: Missing path" + stop("missing path") + } + + # wrong file format + if (!tools::file_ext(path) %in% c("txt", "csv")) { + # files_all$BAS_path[files_all$weighing_sheet == basename(w_file)] <- "Error: Wrong file extension" + stop("wrong file extension") + } + + # file doesn't exist + if (!file.exists(path)) { + # files_all$BAS_file[files_all$weighing_sheet == basename(w_file)] <- "Error: Missing file" + stop("missing file") + } + + o2_ext <- tools::file_ext(path) + + + if (o2_ext == "txt") { + + raw_data0 <- readr::read_delim(path, delim = ";", col_types = cols(Time = col_character())) + raw_data <- raw_data0[,-c(33:34)] + + } else if (o2_ext == "csv") { + + suppressMessages( + raw_data0 <- readr::read_csv(path, col_names = FALSE, na = c(NA, "")) + ) + + # issue with some files + if (length(raw_data0) == 1) { + raw_data0 <- read.csv(path, header = F, sep = ';', skip = 7 ,na = c(NA, ""), as.is = T) + names(raw_data0) <- raw_data0[1,] + raw_data <- raw_data0[2:(nrow(raw_data0)-2),] + raw_data <- raw_data %>% dplyr::mutate(across(starts_with("S"), as.numeric)) + + } else { + names(raw_data0) <- raw_data0[8,] + raw_data <- raw_data0[9:(nrow(raw_data0)-2),] + } + } + + raw_data + +} + + +#' Calculate hourly differences +#' +#' Uses the difference between every fourth value, similar to calculations +#' using the Excel template. +#' +#' +#' @param x +#' +#' @return +#' @export +calc_hour_diffs <- function(x) { + + max_ind <- floor((length(x))/4) + + ind <- seq_len(max_ind)*4 + + vals <- x[ind] + + vals <- c(0, vals) + + (vals - lag(vals))[-1] + +} + + +#' Reformat weighing sheet +#' +#' Changed the weighing sheet format to match the template used +#' +#' @param df +#' @param info +#' @param template +#' +#' @return +#' @export +reformat_weish <- function(df, info = NULL, template = "iSBio"){ + library(readxl) + + if (template == "iSBio") { + suppressMessages( + + # TODO add template file (in inst) and update script + template <- read_xlsx("C:/Users/gp63dyte/Documents/Projects_local/isbio_r/rawdata/o2_autofill/3_TEMPLATES/w_template.xlsx", + sheet = "Data", col_names = FALSE)) + } + + #fill defaults + template[3:4,6] <- "Alfred Lochner" + template[8:37, 10] <- "FS" + + template[8:37, c(1:4, 7:9)] <- df[3:32, 1:7] + + #add blocks to sample names + titles <- df[2,] + lowtitles <- tolower(titles) + if ("block" %in% lowtitles) { + template[8:37, 5] <- df[3:32, which(lowtitles == "block"), drop = T] + } + + #add pID to remarks + if ("personal id" %in% lowtitles) { + template[8:37, 14] <- paste0("pID=", df[3:32, which(lowtitles == "personal id"), drop = T]) + } + + # remarks + if ("remarks" %in% lowtitles) { + template[8:37, 14] <- paste0(df[3:32, which(lowtitles == "remarks"), drop = T]) + } + + #H2O + if ("H2O/sample" %in% titles) { + template[8:37, 12] <- df[3:32, which(titles == "H2O/sample"), drop = T] + } + + #Glucose + if ("glc/sample" %in% lowtitles) { + template[8:37, 11] <- df[3:32, which(lowtitles == "glc/sample"), drop = T] + } + + if(!is.null(info)){ + #bas + cmic files + template[3,3] <- info$bas_new + template[4,3] <- info$cmic_new + } + + template +} + + +write_xl_format <- function(df, path){ + #TODO write directly to excel file to keep formatting + #loadworkbook and writeData + library(openxlsx) + + write.xlsx(df, path, col.names = FALSE) + + #format excel document + weights_xl <- loadWorkbook(path, xlsxFile = NULL) + + #merge cells + mergeCells(weights_xl, sheet = 1, cols = 3:5, rows = 3) + mergeCells(weights_xl, sheet = 1, cols = 6:11, rows = 3) + mergeCells(weights_xl, sheet = 1, cols = 12:13, rows = 3) + + mergeCells(weights_xl, sheet = 1, cols = 3:5, rows = 4) + mergeCells(weights_xl, sheet = 1, cols = 6:11, rows = 4) + mergeCells(weights_xl, sheet = 1, cols = 12:13, rows = 4) + + saveWorkbook(weights_xl, path, overwrite = TRUE) +} + + +#' Title +#' +#' @param file +#' +#' @return +#' @export +#' +#' @examples +o2_meas_time <- function(file) { + + df <- file %>% o2_read_machine_file + + difftime(lubridate::dmy_hms(paste(df$Date[nrow(df)-1], df$Time[nrow(df)-1])), + lubridate::dmy_hms(paste(df$Date[1], df$Time[1])), + units = "hours") %>% as.numeric + + +} + +o2_meas_times <- function(files) purrr::map_dbl(files, o2_meas_time) + + + + +#' Title +#' +#' @param file +#' +#' @return +#' @export +o2_raw_date <- function(file){ + + file %>% o2_read_machine_file %>% pull(Date) %>% .[1] %>% lubridate::dmy() %>% as.character + +} + +o2_raw_dates <- function(files) purrr::map_chr(files, o2_raw_date) + + + +#' Check weighing sheet format +#' +#' Either all in one ws or split on two +#' +#' @param path +#' +#' @return +check_wei_format <- function(path) { + + ns <- readxl::excel_sheets(path) + + if (length(ns) == 1) { + + suppressMessages( + w_sheet <- readxl::read_xlsx(path, col_names = FALSE, col_types = "text", na = c("NA", "")) + ) + + assertthat::assert_that(isTRUE(all.equal(w_sheet[1, 1:3] %>% unlist, c("STARTDATE", "TYPE", "FILENAME"), check.names = FALSE)) & + isTRUE(all.equal((w_sheet[6:7, 1] %>% unlist), c("idSequence", NA), check.names = FALSE)), + msg = "Unexpected weighing sheet format. Please refer to the documentation.") + + return("together") + + } else if (length(ns) == 2) { + + assertthat::assert_that(all(readxl::excel_sheets(path) == c("info", "data")), + msg = "The weighing sheet tabs are mislabelled. Please refer to the documentation.") + + return("split") + + } else { + + stop("Wrong number of tabs in the weighing_sheets.") + + } + +} + + +extract_raw_path1 <- function(file) { + + frmt <- check_wei_format(file) + + if (frmt == "together") { + + suppressMessages( + readxl::read_xlsx(file, col_names = FALSE, col_types = "text", na = c("NA", ""))[3:4, 3] %>% unlist %>% unname + ) + + } else if (frmt == "split") { + + readxl::read_xlsx(file, sheet = "info", col_types = "text", na = c("NA", "")) %>% + # TODO ..2 generates note when building package. Check for better way + filter(...1 %in% c("bas_file", "mic_file")) %>% pull(..2) + + } + +} + +extract_raw_path <- function(files) { + + assertthat::assert_that(is.character(path)) + + purrr::map(files, extract_raw_path1) + +} + + diff --git a/R/review.R b/R/review.R new file mode 100644 index 0000000000000000000000000000000000000000..de11044f2165f5afeab43f9a3508dedfb163625c --- /dev/null +++ b/R/review.R @@ -0,0 +1,43 @@ + + + + + +get_set_times <- function(id, tib) { + + if(id %in% tib[1]) { + trib %>% filter(across(1, . == id)) %>% pull(times) %>% chuck(1) + } else { + NA + } + +} + + +set_bas_times <- function(data, tib) { + + # TODO add method to work with device*seq + + # error if many entries selected + duplicated_name <- map_lgl(tib[,1], ~ sum(.x == data$name_c) <= 1) + assertthat::assert_that(all(!duplicated_name)) + + data <- data %>% mutate(bas_set = map(name_c, get_set_times, tib = tib)) + +} + + +set_cmic_times <- function(data, tib) { + + data <- data %>% mutate(cmic_set = map(name_c, get_set_times, tib = tib)) + +} + + + + +# detect remeasurements + + + +# remove remeasurements diff --git a/R/utils-pipe.R b/R/utils-pipe.R new file mode 100644 index 0000000000000000000000000000000000000000..fd0b1d13db4ff91b7f836f72b7d5d88d958f6e1f --- /dev/null +++ b/R/utils-pipe.R @@ -0,0 +1,14 @@ +#' Pipe operator +#' +#' See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details. +#' +#' @name %>% +#' @rdname pipe +#' @keywords internal +#' @export +#' @importFrom magrittr %>% +#' @usage lhs \%>\% rhs +#' @param lhs A value or the magrittr placeholder. +#' @param rhs A function call using the magrittr semantics. +#' @return The result of calling `rhs(lhs)`. +NULL diff --git a/inst/extdata/bas_DIETER_6391-6420_2019-11-26_Project1.csv b/inst/extdata/bas_DIETER_6391-6420_2019-11-26_Project1.csv new file mode 100644 index 0000000000000000000000000000000000000000..3c279abb6e10b9c2c65f6decc570f2ab9345f0fa --- /dev/null +++ b/inst/extdata/bas_DIETER_6391-6420_2019-11-26_Project1.csv @@ -0,0 +1,190 @@ +Start Date;26.11.2019 +Start Time;17:29:10 +Store Interval;15;min +Threshold;1.0;Volt +Puls On Time;1000;ms +Puls Off Time;3000;ms + +Date;Time;S1;S2;S3;S4;S5;S6;S7;S8;S9;S10;S11;S12;S13;S14;S15;S16;S17;S18;S19;S20;S21;S22;S23;S24;S25;S26;S27;S28;S29;S30 +26.11.2019;17:44:10;0;0;0;0;0;0;0;0;0;0;0;0;8;4;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;17:59:10;0;0;0;0;0;0;0;0;0;0;0;0;15;4;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;18:14:10;0;0;0;0;0;2;0;0;0;0;0;0;25;10;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;18:29:10;0;0;0;0;0;6;0;0;0;0;0;3;37;19;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;18:44:10;0;0;0;0;0;12;0;0;0;0;0;8;47;27;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;18:59:10;0;0;0;0;0;17;0;0;0;0;0;13;57;35;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;19:14:10;0;0;0;0;0;23;0;0;0;0;0;19;68;44;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;19:29:10;0;0;0;0;0;28;0;0;0;0;0;25;78;52;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;19:44:10;1;0;0;0;0;34;0;0;0;0;0;31;89;60;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;19:59:10;5;0;0;0;0;40;0;0;0;0;0;37;99;69;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;20:14:10;8;0;0;0;0;46;0;0;0;4;0;43;109;76;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;20:29:10;12;0;0;0;0;52;0;0;0;8;0;50;119;84;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;20:44:10;16;0;0;0;0;58;0;0;2;12;0;56;129;93;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;20:59:10;20;0;0;4;0;64;0;0;5;16;0;62;138;101;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;21:14:10;24;0;0;9;0;70;0;0;8;20;0;68;148;109;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;21:29:10;28;0;0;15;3;76;0;0;11;24;0;75;158;117;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;21:44:10;32;0;0;20;6;82;0;0;15;29;0;81;168;125;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;21:59:10;36;0;0;26;9;89;0;0;18;34;0;87;178;133;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;22:14:10;40;0;0;31;12;95;0;0;22;38;0;94;188;142;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;22:29:10;44;0;0;37;14;101;0;0;25;42;0;100;197;149;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;22:44:10;48;0;0;42;17;107;0;0;28;47;0;107;207;157;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;22:59:10;52;0;5;48;20;113;0;0;32;51;0;113;216;165;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;23:14:10;56;0;9;53;22;120;0;0;35;56;0;120;226;173;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;23:29:10;60;1;12;58;25;126;0;0;39;60;0;126;235;181;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;23:44:10;64;3;15;63;28;132;0;0;42;65;1;133;244;188;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +26.11.2019;23:59:10;68;5;19;69;31;138;0;0;46;69;3;139;254;197;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;00:14:10;72;7;21;74;33;144;0;0;49;73;5;146;263;204;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;00:29:10;76;10;25;79;36;150;0;0;52;78;7;152;273;212;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;00:44:10;80;12;28;84;39;157;0;0;56;82;9;159;282;220;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;00:59:10;84;14;32;89;42;163;0;0;59;87;12;165;292;228;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;01:14:10;88;16;35;94;45;169;0;1;63;91;14;172;301;236;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;01:29:10;91;18;38;99;48;175;0;4;66;96;16;178;310;244;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;01:44:10;95;21;41;104;50;181;0;7;70;100;18;185;319;251;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;01:59:10;99;23;45;110;53;188;3;9;73;105;20;191;328;259;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;02:14:10;103;25;48;115;56;194;5;12;76;109;23;198;338;267;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;02:29:10;107;27;52;120;59;200;8;15;80;114;25;205;347;275;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;02:44:10;111;30;55;125;62;207;10;18;84;118;27;211;357;283;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;02:59:10;115;32;58;130;65;213;13;20;87;123;29;218;366;291;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;03:14:10;119;34;61;135;68;219;15;23;91;127;32;224;375;299;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;03:29:10;123;36;64;140;71;226;18;25;94;132;34;231;384;306;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;03:44:10;127;39;68;145;74;232;20;28;97;136;36;237;394;314;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;03:59:10;131;41;71;150;77;238;23;31;101;141;39;244;403;322;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;04:14:10;135;44;74;155;79;245;25;34;105;145;41;251;412;330;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;04:29:10;139;46;77;160;83;251;27;36;108;150;43;257;421;338;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;04:44:10;143;48;80;165;86;257;30;39;112;154;45;264;430;346;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;04:59:10;147;51;83;170;89;264;33;42;115;159;48;271;439;354;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;05:14:10;151;53;86;175;91;270;35;44;119;163;50;277;448;361;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;05:29:10;155;55;90;180;94;276;37;47;123;168;52;284;458;369;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;05:44:10;159;58;93;185;98;283;40;50;126;173;54;291;467;377;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;05:59:10;164;60;96;190;100;289;42;53;130;177;57;298;476;385;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;06:14:10;168;63;99;195;104;296;45;55;133;182;59;305;485;392;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;06:29:10;172;65;102;201;107;302;47;58;137;187;62;311;495;401;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;06:44:10;176;68;105;206;110;308;50;61;141;191;64;318;504;409;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;06:59:10;180;70;108;210;113;315;52;63;144;195;66;325;512;416;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;07:14:10;184;72;111;215;116;321;54;66;148;200;68;331;522;424;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;07:29:10;187;74;113;220;118;327;56;68;151;204;70;338;531;431;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;07:44:10;191;77;116;225;121;333;59;71;154;209;73;344;540;439;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;07:59:10;195;79;119;230;124;339;61;73;158;213;75;351;549;447;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;08:14:10;199;81;121;235;127;346;63;76;161;217;77;357;557;455;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;08:29:10;203;84;124;239;130;352;65;78;165;222;79;364;566;462;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;08:44:10;207;86;127;244;133;358;67;81;168;226;81;370;575;470;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;08:59:10;211;88;130;249;135;364;69;83;171;231;83;377;584;478;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;09:14:10;215;90;132;254;138;370;72;86;175;235;85;384;593;485;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;09:29:10;219;93;135;259;141;377;74;88;178;239;88;390;602;493;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;09:44:10;223;95;137;264;144;383;76;91;182;244;90;396;611;501;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;09:59:10;227;97;140;268;146;389;78;93;185;248;92;403;620;508;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;10:14:10;231;99;142;273;149;395;80;95;188;252;94;409;629;516;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;10:29:10;235;102;146;278;152;401;82;98;192;257;96;416;638;524;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;10:44:10;236;103;146;278;154;403;83;99;193;258;97;418;642;527;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;10:59:10;238;103;146;281;154;408;83;99;193;259;97;424;650;533;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;11:14:10;241;103;146;286;155;414;83;99;196;263;97;430;659;540;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;11:29:10;245;105;147;291;157;420;83;100;199;267;99;436;668;548;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;11:44:10;249;107;150;296;160;427;85;102;202;272;101;443;677;555;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;11:59:10;253;109;153;301;162;433;87;105;206;276;103;449;686;563;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;12:14:10;257;111;155;305;165;439;89;107;209;280;105;456;694;570;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;12:29:10;261;113;157;310;168;445;91;109;212;284;106;462;703;578;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;12:44:10;265;115;160;314;170;451;93;111;216;288;108;469;711;585;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;12:59:10;268;117;162;319;173;457;94;114;219;293;110;475;720;593;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;13:14:10;272;119;164;324;175;463;96;116;222;297;112;481;728;600;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;13:29:10;276;121;166;328;177;469;98;118;225;301;114;487;737;607;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;13:44:10;280;123;168;332;180;474;99;120;228;305;115;494;745;614;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;13:59:10;283;125;170;337;182;480;101;121;231;308;117;500;754;621;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;14:14:10;287;126;173;341;184;486;102;123;234;312;119;506;762;628;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;14:29:10;290;128;175;346;186;492;104;125;237;316;120;512;771;635;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;14:44:10;294;130;177;350;189;498;106;127;240;320;122;518;779;643;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;14:59:10;298;133;180;355;192;504;108;130;244;325;124;525;789;651;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;15:14:10;303;136;183;361;195;511;111;133;248;330;127;532;798;659;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;15:29:10;307;137;186;365;198;517;113;135;251;334;129;539;807;666;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;15:44:10;310;139;188;370;200;523;114;137;254;338;131;545;815;674;6;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;15:59:10;314;141;190;374;202;529;116;139;257;342;133;551;824;681;7;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;16:14:10;318;143;192;379;204;535;118;141;260;346;134;557;832;688;7;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;16:29:10;323;146;196;385;208;542;121;145;265;352;138;565;842;697;10;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;16:44:10;327;148;198;389;211;548;123;147;268;356;140;572;851;704;11;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;16:59:10;331;150;201;394;213;554;125;150;271;360;142;578;859;712;12;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;17:14:10;334;152;203;398;216;560;127;152;274;364;144;584;868;719;13;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;17:29:10;338;154;205;403;218;566;129;154;277;368;146;590;877;727;14;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;17:44:10;342;156;207;407;221;572;130;156;280;372;147;597;885;734;15;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;17:59:10;346;158;209;412;223;578;132;158;283;376;149;603;893;741;16;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;18:14:10;350;160;212;416;226;583;134;160;287;380;151;609;902;748;17;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;18:29:10;353;162;214;421;228;589;136;162;290;384;153;616;911;756;19;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;18:44:10;357;164;217;426;231;596;138;164;293;389;155;622;919;763;20;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;18:59:10;361;166;219;431;234;602;140;167;296;393;157;629;928;771;21;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;19:14:10;365;169;222;435;236;608;141;169;300;397;159;635;937;778;22;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;19:29:10;369;170;224;440;239;614;143;171;303;401;161;641;945;785;23;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;19:44:10;373;173;228;445;242;620;146;174;307;406;163;648;955;794;25;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;19:59:10;377;175;230;450;245;626;148;177;310;410;166;655;963;801;27;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;20:14:10;381;177;232;454;247;632;150;179;313;414;168;661;972;808;28;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;20:29:10;385;179;235;459;250;638;152;181;317;419;170;668;980;816;29;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;20:44:10;389;181;237;464;252;644;153;183;320;423;172;674;989;823;30;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;20:59:10;393;183;239;468;255;650;155;185;323;427;174;680;997;830;31;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;21:14:10;397;185;242;473;257;656;157;187;326;431;176;687;1006;838;32;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;21:29:10;401;188;244;478;260;662;159;190;330;435;178;693;1014;845;34;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;21:44:10;404;190;246;482;263;668;161;192;333;439;180;699;1023;853;35;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;21:59:10;408;192;249;487;265;674;163;194;336;443;182;706;1032;860;36;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;22:14:10;412;194;251;491;268;680;165;196;339;447;184;712;1040;868;37;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;22:29:10;416;196;253;496;270;686;166;198;342;451;186;718;1049;875;38;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;22:44:10;420;198;256;500;273;692;168;201;346;455;187;724;1057;883;40;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;22:59:10;423;200;258;505;275;698;170;203;349;460;189;731;1066;890;41;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;23:14:10;427;201;260;509;278;704;172;205;352;463;191;737;1074;897;42;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;23:29:10;431;203;262;514;280;709;173;207;355;467;193;743;1083;904;43;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;23:44:10;434;205;264;518;283;715;175;209;358;471;195;749;1091;912;44;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +27.11.2019;23:59:10;438;207;266;523;285;721;176;211;361;475;197;755;1099;919;45;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;00:14:10;442;209;269;527;287;727;178;213;364;479;199;761;1108;926;46;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;00:29:10;445;211;271;532;290;733;180;215;367;483;200;768;1116;933;47;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;00:44:10;449;213;273;536;292;739;182;217;371;487;202;774;1125;941;48;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;00:59:10;453;215;275;541;295;745;183;219;374;491;204;780;1133;948;49;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;01:14:10;457;217;278;546;297;750;185;221;377;495;206;786;1142;956;51;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;01:29:10;461;218;279;550;300;756;187;223;380;499;208;793;1150;963;52;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;01:44:10;464;220;282;554;302;762;189;225;383;503;210;799;1159;970;53;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;01:59:10;468;222;284;559;305;768;190;227;387;507;212;805;1167;977;54;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;02:14:10;472;224;286;564;307;774;192;229;390;511;213;812;1176;985;56;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;02:29:10;476;226;289;568;310;780;194;232;393;516;216;818;1185;992;57;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;02:44:10;479;228;291;573;312;786;196;234;396;520;217;824;1193;999;58;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;02:59:10;483;230;293;577;315;792;197;235;399;523;219;830;1201;1007;59;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;03:14:10;487;232;295;582;317;798;199;238;402;527;221;836;1210;1014;60;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;03:29:10;490;234;297;586;320;803;201;240;406;531;223;842;1219;1021;61;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;03:44:10;494;236;300;591;322;809;203;242;409;535;225;849;1227;1028;62;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;03:59:10;498;238;302;595;325;815;204;244;412;540;227;855;1236;1036;64;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;04:14:10;502;240;304;600;327;821;206;246;415;544;229;862;1244;1043;65;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;04:29:10;506;242;307;605;330;827;208;248;418;548;231;868;1253;1051;66;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;04:44:10;510;244;309;609;333;833;210;250;422;552;233;874;1261;1058;68;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;04:59:10;514;246;311;614;335;839;212;253;425;556;235;880;1270;1066;69;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;05:14:10;517;248;313;618;338;845;214;255;428;560;236;887;1278;1073;70;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;05:29:10;521;250;316;623;340;851;216;257;432;565;238;893;1287;1080;72;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;05:44:10;525;252;319;628;343;857;218;259;435;569;241;899;1296;1088;73;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;05:59:10;529;254;321;632;346;863;219;262;438;573;243;906;1304;1096;75;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;06:14:10;533;256;323;637;349;869;221;264;442;577;245;912;1313;1103;76;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;06:29:10;537;258;325;642;351;875;223;266;445;581;247;918;1321;1110;78;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;06:44:10;541;260;328;646;354;881;225;268;448;585;249;925;1330;1118;79;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;06:59:10;545;262;330;651;356;887;227;270;451;590;251;931;1338;1125;80;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;07:14:10;549;264;333;656;359;893;229;273;455;594;253;937;1347;1133;82;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;07:29:10;553;266;335;661;362;899;231;275;458;598;255;944;1355;1140;83;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;07:44:10;557;268;337;665;364;905;233;277;461;602;257;950;1364;1148;84;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;07:59:10;560;270;340;670;367;910;235;279;465;606;259;956;1373;1155;86;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;08:14:10;564;273;342;674;370;916;237;282;468;610;261;963;1381;1162;87;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;08:29:10;568;275;344;679;372;922;239;284;471;614;263;969;1390;1170;89;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;08:44:10;572;277;347;684;375;928;240;286;474;619;265;975;1399;1177;90;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;08:59:10;576;279;349;688;378;934;242;288;478;623;267;982;1407;1185;91;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;09:14:10;580;281;351;693;381;940;244;290;481;627;269;988;1416;1192;93;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;09:29:10;584;283;354;698;383;946;246;293;484;631;271;994;1424;1200;94;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;09:44:10;588;285;356;702;386;952;248;295;487;635;273;1000;1433;1207;95;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;09:59:10;592;287;358;707;388;958;250;297;491;639;275;1007;1441;1214;97;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;10:14:10;596;288;360;711;391;964;252;299;494;643;277;1013;1450;1221;98;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;10:29:10;600;291;363;716;394;970;254;301;497;647;279;1019;1458;1229;100;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;10:44:10;604;293;366;721;397;976;256;304;501;652;282;1026;1467;1237;101;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;10:59:10;608;295;368;726;400;982;258;306;504;656;284;1032;1476;1244;103;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;11:14:10;612;298;371;731;403;988;260;309;508;660;286;1039;1485;1252;105;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;11:29:10;616;300;373;735;405;994;263;311;511;665;288;1045;1493;1259;106;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;11:44:10;620;302;376;740;408;1000;265;314;515;669;290;1052;1502;1267;108;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;11:59:10;624;304;378;745;411;1006;267;316;518;673;292;1058;1510;1275;109;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;12:14:10;628;306;380;750;414;1012;269;318;521;677;295;1065;1519;1282;111;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;12:29:10;632;308;383;754;417;1018;270;321;525;681;297;1071;1528;1290;112;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;12:44:10;636;310;386;759;419;1024;273;323;528;686;299;1077;1536;1297;114;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;12:59:10;640;313;388;764;422;1030;275;325;532;690;301;1084;1545;1305;115;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;13:14:10;645;315;391;769;425;1036;277;328;535;694;303;1090;1554;1312;117;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;13:29:10;648;317;393;774;428;1042;279;330;539;699;306;1096;1563;1320;119;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;13:44:10;653;319;396;778;431;1048;281;333;542;703;308;1103;1571;1328;120;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;13:59:10;657;321;398;783;434;1054;283;335;546;707;310;1109;1580;1336;122;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;14:14:10;661;323;401;788;436;1060;285;337;549;711;312;1116;1589;1343;123;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;14:24:00;663;325;402;791;438;1064;286;339;551;714;314;1120;1594;1348;124;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +Stopped;28.11.2019;14:24:00 diff --git a/inst/extdata/bas_DIETER_6661-6690_2020-02-10_Project1.csv b/inst/extdata/bas_DIETER_6661-6690_2020-02-10_Project1.csv new file mode 100644 index 0000000000000000000000000000000000000000..1b601bd70aeabbd44a22e338d412ca3ff5282e2b --- /dev/null +++ b/inst/extdata/bas_DIETER_6661-6690_2020-02-10_Project1.csv @@ -0,0 +1,292 @@ +Start Date;10.02.2020 +Start Time;15:26:44 +Store Interval;15;min +Threshold;1.0;Volt +Puls On Time;1000;ms +Puls Off Time;3000;ms + +Date;Time;S1;S2;S3;S4;S5;S6;S7;S8;S9;S10;S11;S12;S13;S14;S15;S16;S17;S18;S19;S20;S21;S22;S23;S24;S25;S26;S27;S28;S29;S30 +10.02.2020;15:41:44;0;0;0;0;0;0;2;0;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;15:56:44;2;3;0;0;0;0;17;1;13;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;16:11:44;5;7;0;0;0;0;30;5;23;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;16:26:44;9;12;0;0;0;0;43;10;34;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;16:41:44;14;18;0;0;0;0;57;13;45;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;16:56:44;20;25;0;0;0;0;72;20;57;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;17:11:44;23;29;0;0;0;0;82;21;65;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;17:26:44;29;36;0;0;0;0;96;27;76;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;17:41:44;34;41;0;0;0;0;108;33;85;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;17:56:44;39;48;0;0;0;0;121;36;97;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;18:11:44;46;55;0;0;0;0;135;43;108;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;18:26:44;50;61;0;0;0;0;146;45;118;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;18:41:44;58;68;0;0;0;0;160;53;130;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;18:56:44;60;72;0;0;0;0;169;53;137;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;19:11:44;66;79;0;0;0;0;182;58;148;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;19:26:44;72;86;0;0;0;0;195;64;159;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;19:41:44;77;91;0;0;0;0;205;69;167;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;19:56:44;82;98;0;0;0;0;217;72;177;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;20:11:44;88;105;0;0;0;0;230;77;188;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;20:26:44;94;112;0;0;0;0;242;82;199;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;20:41:44;97;115;0;0;0;0;251;86;205;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;20:56:44;102;121;0;0;0;0;263;88;215;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;21:11:44;108;128;0;0;0;0;275;93;226;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;21:26:44;114;135;0;0;0;0;288;98;236;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;21:41:44;120;142;0;0;0;0;300;103;247;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;21:56:44;126;149;0;0;0;0;312;108;257;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;22:11:44;132;155;0;0;0;0;324;113;268;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;22:26:44;137;162;0;0;0;0;336;117;277;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;22:41:44;141;166;0;0;0;0;346;123;286;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;22:56:44;146;172;0;0;0;0;357;124;295;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;23:11:44;151;178;0;0;0;0;369;128;305;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;23:26:44;157;185;0;0;0;0;381;133;315;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;23:41:44;163;192;0;0;0;0;393;138;325;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +10.02.2020;23:56:44;168;197;0;0;0;0;404;143;333;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;00:11:44;174;204;0;0;0;0;417;147;344;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;00:26:44;180;211;0;0;0;0;428;151;354;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;00:41:44;185;217;0;0;0;0;440;156;364;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;00:56:44;188;221;0;0;0;0;449;159;372;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;01:11:44;194;227;0;0;0;0;461;161;381;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;01:26:44;199;233;0;0;0;0;473;166;391;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;01:41:44;207;241;0;0;0;0;486;172;403;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;01:56:44;212;247;0;0;0;0;497;176;411;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;02:11:44;215;251;0;0;0;0;507;180;419;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;02:26:44;220;257;0;0;0;0;518;182;429;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;02:41:44;227;264;0;0;0;0;531;187;439;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;02:56:44;233;270;0;0;0;0;543;194;449;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;03:11:44;237;276;0;0;0;0;554;195;458;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;03:26:44;243;282;0;0;0;0;565;202;468;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;03:41:44;249;290;0;0;0;0;578;205;477;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;03:56:44;253;294;0;0;0;0;587;207;486;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;04:11:44;259;301;0;0;0;0;600;212;496;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;04:26:44;262;305;0;0;0;0;609;215;504;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;04:41:44;268;312;0;0;0;0;622;218;514;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;04:56:44;275;319;0;0;0;0;634;224;524;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;05:11:44;280;325;0;0;0;0;646;228;534;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;05:26:44;285;330;0;0;0;0;656;233;542;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;05:41:44;289;336;0;0;0;0;667;235;551;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;05:56:44;295;341;0;0;0;0;678;240;561;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;06:11:44;299;347;0;0;0;0;689;241;569;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;06:26:44;305;354;0;0;0;0;701;246;579;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;06:41:44;311;361;0;0;0;0;714;251;590;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;06:56:44;314;365;0;0;0;0;723;254;597;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;07:11:44;320;371;0;0;0;0;735;258;607;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;07:26:44;327;378;0;0;0;0;748;263;618;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;07:41:44;330;382;0;0;0;0;757;265;625;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;07:56:44;336;389;0;0;0;0;770;270;636;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;08:11:44;343;396;0;0;0;0;782;275;646;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;08:26:44;347;401;0;0;0;0;792;278;654;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;08:41:44;352;408;0;0;0;0;805;283;664;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;08:56:44;355;411;0;0;0;0;814;286;671;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;09:11:44;361;417;0;0;0;0;825;288;681;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;09:26:44;367;424;0;0;0;0;838;294;691;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;09:41:44;373;431;0;0;0;0;850;298;702;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;09:56:44;376;435;0;0;0;0;860;301;709;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;10:11:44;382;442;0;0;0;0;872;305;719;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;10:26:44;387;446;0;0;0;0;882;310;727;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;10:41:44;391;452;0;0;0;0;893;311;736;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;10:56:44;397;459;0;0;0;0;905;316;746;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;11:11:44;402;464;0;0;0;0;916;320;755;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;11:26:44;407;469;0;0;0;0;926;324;764;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;11:41:44;413;476;3;2;3;2;935;328;773;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;11:56:44;417;481;3;2;3;2;947;330;783;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;12:11:44;423;488;3;2;3;2;959;335;793;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;12:26:44;429;494;3;2;3;2;970;339;802;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;12:41:44;434;500;3;2;3;2;982;343;812;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;12:56:44;438;504;3;3;3;4;991;347;820;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;13:11:44;442;509;3;3;3;4;1002;348;828;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;13:26:44;448;516;3;3;3;4;1014;353;838;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;13:41:44;453;522;3;3;3;4;1026;357;848;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;13:56:44;459;528;3;3;3;5;1037;361;857;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;14:11:44;464;534;3;3;3;6;1049;366;867;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;14:26:44;467;536;4;5;3;7;1057;368;873;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;14:41:44;471;542;4;5;3;7;1068;370;882;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;14:56:44;477;548;4;5;3;7;1080;374;892;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;15:11:44;483;555;4;5;3;7;1092;378;902;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;15:26:44;489;561;4;5;3;8;1104;383;911;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;15:41:44;494;567;4;5;3;9;1115;387;921;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;15:56:44;499;573;4;6;3;10;1126;391;931;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;16:11:44;505;579;6;7;3;11;1138;395;940;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;16:26:44;510;585;7;8;3;12;1149;400;950;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;16:41:44;516;591;9;10;4;14;1161;404;959;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;16:56:44;521;598;10;11;5;15;1173;408;969;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;17:11:44;526;603;11;12;6;16;1184;412;979;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;17:26:44;530;607;14;15;9;18;1192;416;986;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;17:41:44;532;611;14;15;9;18;1202;416;993;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;17:56:44;538;617;14;15;9;18;1214;420;1003;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;18:11:44;543;623;14;15;9;18;1226;424;1012;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;18:26:44;549;629;14;15;9;18;1237;428;1022;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;18:41:44;554;635;14;15;9;18;1249;432;1032;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;18:56:44;560;641;14;15;9;19;1260;437;1041;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;19:11:44;565;647;14;15;9;20;1272;441;1051;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;19:26:44;571;653;14;16;9;21;1283;445;1061;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;19:41:44;576;659;16;17;9;22;1294;449;1070;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;19:56:44;581;665;17;18;10;23;1306;453;1080;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;20:11:44;584;668;20;21;13;25;1314;456;1085;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;20:26:44;588;673;20;21;13;25;1325;457;1095;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;20:41:44;594;679;20;21;13;25;1337;462;1105;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;20:56:44;600;685;20;21;13;25;1349;466;1115;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;21:11:44;605;692;20;21;13;26;1360;471;1125;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;21:26:44;611;698;20;21;13;27;1372;475;1134;0;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;21:41:44;616;704;20;22;13;28;1383;479;1144;0;4;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;21:56:44;620;708;24;25;16;30;1392;484;1153;0;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;22:11:44;622;712;24;25;16;30;1402;484;1159;0;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;22:26:44;628;718;24;25;16;30;1414;487;1169;0;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;22:41:44;633;724;24;25;16;30;1426;492;1179;0;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;22:56:44;639;730;24;25;16;31;1437;496;1188;0;6;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;23:11:44;644;736;24;25;16;32;1449;500;1198;0;8;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;23:26:44;650;742;24;26;16;33;1460;504;1208;0;9;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;23:41:44;655;748;26;27;17;35;1472;509;1218;0;11;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +11.02.2020;23:56:44;661;754;27;29;18;36;1483;513;1227;0;12;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;00:11:44;662;756;30;31;21;37;1490;515;1232;0;13;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;00:26:44;666;761;30;31;21;37;1501;516;1242;0;13;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;00:41:44;672;767;30;31;21;37;1513;520;1252;0;13;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;00:56:44;678;773;30;31;21;37;1525;524;1261;0;13;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;01:11:44;683;779;30;31;21;38;1536;529;1271;0;15;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;01:26:44;689;786;30;31;21;39;1548;533;1281;0;16;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;01:41:44;694;792;30;32;21;40;1559;538;1291;0;18;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;01:56:44;700;798;33;35;24;43;1571;543;1302;0;19;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;02:11:44;700;798;33;35;24;43;1578;543;1306;0;20;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;02:26:44;705;805;33;35;24;43;1589;545;1315;0;20;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;02:41:44;711;811;33;35;24;43;1601;549;1325;0;20;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;02:56:44;717;817;33;35;24;43;1612;554;1335;0;20;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;03:11:44;722;823;33;35;24;43;1624;558;1344;0;22;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;03:26:44;728;829;33;35;24;45;1636;562;1354;0;23;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;03:41:44;733;835;33;37;25;46;1647;567;1364;0;25;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;03:56:44;738;841;35;38;26;47;1659;571;1374;0;26;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;04:11:44;744;847;37;40;28;49;1670;575;1384;0;28;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;04:26:44;747;851;40;42;30;51;1678;578;1391;0;29;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;04:41:44;749;854;40;42;30;51;1688;578;1398;0;29;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;04:56:44;755;859;40;42;30;51;1700;582;1407;0;29;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;05:11:44;761;866;40;42;30;51;1712;586;1417;0;29;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;05:26:44;766;872;40;42;30;51;1723;591;1427;0;30;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;05:41:44;772;878;40;42;30;52;1735;595;1437;0;32;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;05:56:44;778;884;42;46;34;54;1747;600;1448;0;33;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;06:11:44;779;886;42;46;34;54;1754;601;1453;0;33;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;06:26:44;784;892;42;46;34;54;1766;604;1463;0;33;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;06:41:44;790;898;42;46;34;54;1777;608;1473;0;34;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;06:56:44;795;905;42;46;34;56;1789;613;1483;0;36;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;07:11:44;801;911;42;46;34;57;1801;617;1493;0;37;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;07:26:44;807;917;45;48;35;59;1813;622;1503;0;39;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;07:41:44;811;921;48;51;39;61;1821;626;1511;0;41;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;07:56:44;812;924;48;51;39;61;1831;626;1517;0;41;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;08:11:44;818;930;48;51;39;61;1843;629;1527;0;41;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;08:26:44;824;936;48;51;39;61;1854;634;1537;0;41;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;08:41:44;829;942;48;51;39;62;1866;638;1547;0;42;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;08:56:44;835;949;48;52;39;63;1878;643;1557;0;44;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;09:11:44;840;955;50;54;39;65;1889;647;1567;0;45;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;09:26:44;845;960;54;57;43;67;1900;652;1577;0;47;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;09:41:44;846;961;54;57;43;67;1907;652;1581;0;47;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;09:56:44;851;967;54;57;43;67;1918;653;1591;0;47;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;10:11:44;856;973;54;57;43;67;1930;658;1601;0;47;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;10:26:44;862;979;54;57;43;67;1941;662;1611;0;47;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;10:41:44;867;985;54;57;43;68;1953;666;1620;0;49;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;10:56:44;873;991;54;57;43;69;1964;670;1630;0;50;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;11:11:44;878;997;54;58;43;71;1976;674;1640;0;52;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;11:26:44;882;1001;56;61;47;73;1984;678;1648;0;53;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;11:41:44;885;1005;56;61;47;73;1996;679;1656;0;53;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;11:56:44;891;1011;56;61;47;73;2007;683;1666;0;53;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;12:11:44;896;1017;56;61;47;73;2019;688;1676;0;54;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;12:26:44;901;1023;56;61;47;75;2030;692;1685;0;56;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;12:41:44;906;1027;59;63;49;76;2039;696;1695;0;57;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;12:56:44;908;1030;59;63;49;76;2049;696;1701;0;57;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;13:11:44;913;1036;59;63;49;76;2060;699;1710;0;57;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;13:26:44;918;1042;59;63;49;76;2072;703;1720;0;57;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;13:41:44;923;1047;59;63;49;77;2083;707;1730;0;58;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;13:56:44;928;1053;59;63;49;78;2094;711;1739;0;59;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;14:11:44;934;1059;59;64;49;80;2106;715;1749;0;61;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;14:26:44;939;1065;59;65;50;81;2117;719;1759;0;62;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;14:41:44;946;1073;65;70;55;85;2130;725;1771;0;65;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;14:56:44;947;1074;65;70;55;85;2137;726;1776;0;65;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;15:11:44;952;1079;65;70;55;85;2149;729;1785;0;65;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;15:26:44;957;1085;65;70;55;85;2160;733;1795;0;65;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;15:41:44;963;1091;65;70;55;85;2172;737;1805;0;66;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;15:56:44;968;1097;65;70;55;87;2183;741;1814;0;68;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;16:11:44;973;1103;65;71;56;88;2195;745;1824;0;69;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;16:26:44;979;1109;67;72;57;90;2206;749;1834;0;71;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;16:41:44;984;1114;70;75;61;92;2217;754;1844;0;72;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;16:56:44;984;1114;70;75;61;92;2223;754;1848;0;72;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;17:11:44;989;1120;70;75;61;92;2235;755;1857;0;72;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;17:26:44;994;1126;70;75;61;92;2246;760;1867;0;72;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;17:41:44;1000;1132;70;75;61;92;2258;764;1877;0;72;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;17:56:44;1005;1138;70;75;61;92;2269;768;1887;0;74;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;18:11:44;1011;1144;70;75;61;94;2281;772;1896;0;75;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;18:26:44;1016;1150;70;76;61;95;2292;776;1906;0;76;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;18:41:44;1021;1156;72;78;63;97;2304;781;1916;0;78;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;18:56:44;1026;1162;74;79;64;98;2315;785;1926;0;79;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;19:11:44;1032;1167;75;81;65;100;2327;789;1935;0;81;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;19:26:44;1034;1170;78;83;69;101;2334;792;1942;0;82;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;19:41:44;1037;1174;78;83;69;101;2345;792;1950;0;82;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;19:56:44;1043;1181;78;83;69;101;2357;797;1960;0;82;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;20:11:44;1049;1187;78;83;69;102;2369;801;1970;0;83;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;20:26:44;1054;1193;78;83;69;103;2380;806;1980;0;85;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;20:41:44;1058;1197;81;86;71;105;2388;809;1988;0;86;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;20:56:44;1060;1199;81;86;71;105;2399;809;1995;0;86;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;21:11:44;1065;1205;81;86;71;105;2410;813;2004;0;86;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;21:26:44;1071;1211;81;86;71;105;2422;817;2014;0;86;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;21:41:44;1076;1217;81;86;71;106;2433;821;2024;0;87;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;21:56:44;1082;1223;81;86;71;107;2445;826;2034;0;89;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;22:11:44;1087;1229;81;87;72;109;2456;830;2044;0;90;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;22:26:44;1092;1235;82;89;73;110;2467;834;2053;0;92;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;22:41:44;1098;1240;84;90;75;112;2479;838;2063;0;93;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;22:56:44;1101;1243;88;93;78;114;2487;841;2070;0;94;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;23:11:44;1103;1247;88;93;78;114;2497;841;2078;0;94;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;23:26:44;1109;1253;88;93;78;114;2509;845;2087;0;94;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;23:41:44;1114;1258;88;93;78;114;2520;850;2097;0;94;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +12.02.2020;23:56:44;1119;1264;88;93;78;114;2532;854;2107;0;96;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;00:11:44;1124;1270;88;93;78;115;2543;858;2116;0;97;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;00:26:44;1129;1276;88;93;78;117;2554;862;2126;0;98;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;00:41:44;1132;1279;90;96;81;118;2562;865;2133;0;99;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;00:56:44;1135;1282;90;96;81;118;2572;865;2141;0;99;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;01:11:44;1140;1288;90;96;81;118;2584;869;2150;0;99;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;01:26:44;1145;1294;90;96;81;118;2595;873;2160;0;99;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;01:41:44;1150;1299;90;96;81;119;2607;877;2170;0;100;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;01:56:44;1155;1305;90;96;81;120;2618;881;2179;0;102;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;02:11:44;1161;1311;90;97;82;122;2629;885;2189;0;103;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;02:26:44;1166;1317;91;98;83;123;2641;889;2199;0;105;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;02:41:44;1171;1322;93;100;85;125;2652;893;2208;0;106;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;02:56:44;1176;1328;94;101;86;126;2663;897;2218;0;108;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;03:11:44;1178;1330;97;103;89;127;2670;900;2223;0;108;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;03:26:44;1181;1334;97;103;89;127;2681;900;2232;0;108;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;03:41:44;1186;1340;97;103;89;127;2693;904;2242;0;108;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;03:56:44;1192;1345;97;103;89;127;2704;908;2252;0;108;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;04:11:44;1197;1351;97;103;89;128;2716;913;2261;0;110;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;04:26:44;1202;1357;97;103;89;130;2727;917;2271;0;111;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;04:41:44;1208;1363;97;105;89;131;2739;921;2281;0;113;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;04:56:44;1213;1369;99;107;91;133;2750;925;2291;0;114;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;05:11:44;1216;1372;102;110;94;135;2758;928;2299;0;116;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;05:26:44;1218;1375;102;110;94;135;2768;928;2305;0;116;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;05:41:44;1223;1381;102;110;94;135;2780;932;2315;0;116;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;05:56:44;1229;1387;102;110;94;135;2791;936;2325;0;116;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;06:11:44;1234;1393;102;110;94;136;2803;941;2335;0;117;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;06:26:44;1239;1398;102;110;94;138;2814;945;2344;0;118;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;06:41:44;1243;1402;104;112;97;140;2823;949;2352;0;120;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;06:56:44;1246;1406;104;112;97;140;2834;949;2360;0;120;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;07:11:44;1251;1412;104;112;97;140;2846;954;2370;0;120;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;07:26:44;1257;1418;104;112;97;140;2857;958;2380;0;121;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;07:41:44;1262;1424;104;112;97;142;2868;962;2390;0;123;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;07:56:44;1267;1429;105;113;98;143;2880;966;2400;0;124;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;08:11:44;1272;1435;109;116;102;145;2891;971;2411;0;126;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;08:26:44;1273;1436;109;116;102;145;2897;971;2415;0;126;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;08:41:44;1278;1442;109;116;102;145;2910;973;2424;0;126;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;08:56:44;1283;1447;109;116;102;145;2921;978;2434;0;126;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;09:11:44;1289;1453;109;116;102;146;2933;982;2444;0;127;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;09:26:44;1294;1459;109;116;102;147;2944;986;2454;0;128;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;09:41:44;1299;1464;109;118;102;149;2955;990;2463;0;130;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;09:56:44;1300;1466;111;120;105;150;2963;992;2469;0;130;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;10:11:44;1305;1472;111;120;105;150;2974;993;2478;0;130;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;10:26:44;1310;1477;111;120;105;150;2986;997;2488;0;130;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;10:41:44;1315;1482;111;120;105;150;2997;1001;2497;0;131;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;10:56:44;1320;1488;111;120;105;152;3008;1005;2507;0;132;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;11:11:44;1325;1494;111;120;105;153;3019;1009;2516;0;133;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;11:26:44;1330;1499;111;121;106;154;3031;1012;2526;0;135;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;11:41:44;1335;1504;113;122;107;155;3042;1016;2535;0;136;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;11:56:44;1340;1509;113;123;108;156;3053;1020;2544;0;137;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;12:11:44;1344;1515;114;124;109;158;3064;1023;2554;0;138;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;12:26:44;1349;1520;116;125;110;159;3075;1027;2563;0;139;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;12:41:44;1354;1526;117;126;111;160;3086;1031;2573;0;140;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;12:56:44;1355;1527;120;128;114;161;3093;1033;2578;0;141;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;13:11:44;1359;1532;120;128;114;161;3105;1034;2587;0;141;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;13:26:44;1365;1537;120;128;114;161;3116;1038;2597;0;141;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;13:41:44;1370;1543;120;128;114;161;3127;1042;2607;0;141;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;13:53:05;1374;1548;120;128;114;162;3136;1045;2614;0;143;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +Stopped;13.02.2020;13:53:05 diff --git a/inst/extdata/mic_DIETER_6391-6420_2019-11-26_Project1.csv b/inst/extdata/mic_DIETER_6391-6420_2019-11-26_Project1.csv new file mode 100644 index 0000000000000000000000000000000000000000..72212aa06fa3e05b810982f18f32d151b8e0011f --- /dev/null +++ b/inst/extdata/mic_DIETER_6391-6420_2019-11-26_Project1.csv @@ -0,0 +1,86 @@ +Start Date;28.11.2019 +Start Time;16:25:02 +Store Interval;15;min +Threshold;1.0;Volt +Puls On Time;1000;ms +Puls Off Time;3000;ms + +Date;Time;S1;S2;S3;S4;S5;S6;S7;S8;S9;S10;S11;S12;S13;S14;S15;S16;S17;S18;S19;S20;S21;S22;S23;S24;S25;S26;S27;S28;S29;S30 +28.11.2019;16:40:02;4;0;4;25;10;21;0;1;2;26;3;14;27;20;165;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;16:55:02;19;10;21;61;30;51;7;14;15;62;15;38;61;51;335;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;17:10:02;35;22;38;95;50;80;17;28;29;98;28;62;95;82;499;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;17:25:02;50;33;54;129;70;108;27;42;44;133;42;87;129;114;662;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;17:40:02;58;37;58;155;82;129;29;47;50;160;48;102;155;137;815;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;17:55:02;73;48;71;188;101;157;38;60;63;194;61;125;188;168;975;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;18:10:02;87;58;83;220;119;183;47;72;76;227;73;148;220;198;1132;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;18:25:02;101;68;96;252;137;210;55;84;89;260;85;170;252;229;1288;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;18:40:02;114;78;108;284;155;236;63;96;102;294;97;192;283;259;1443;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;18:55:02;129;88;121;315;172;262;72;108;116;327;109;214;315;290;1596;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;19:10:02;143;99;134;347;190;288;80;120;129;360;120;237;346;321;1748;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;19:25:02;157;109;148;379;208;314;89;132;142;393;132;259;378;352;1899;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;19:40:02;170;120;162;411;226;340;97;144;156;426;144;281;409;383;2048;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;19:55:02;184;130;176;443;244;365;105;156;170;460;156;303;441;415;2197;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;20:10:02;198;141;189;475;261;391;113;168;183;494;168;325;472;446;2346;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;20:25:02;212;151;203;507;279;416;121;181;197;527;180;347;503;478;2494;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;20:40:02;226;162;216;539;296;441;129;193;211;561;191;368;534;509;2641;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;20:55:02;240;172;230;571;314;466;137;205;225;595;203;390;565;541;2788;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;21:10:02;254;183;244;603;331;492;145;217;239;629;214;412;596;573;2935;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;21:25:02;267;193;257;635;348;517;153;229;253;664;226;434;628;605;3081;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;21:40:02;281;204;271;668;366;542;161;242;267;699;237;455;659;637;3227;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;21:55:02;295;215;284;700;383;567;169;254;281;734;249;477;690;669;3372;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;22:10:02;309;225;298;733;400;592;177;266;296;769;260;499;722;701;3516;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;22:25:02;323;236;311;766;418;617;185;279;310;805;272;521;753;733;3660;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;22:40:02;337;247;325;799;435;641;192;291;325;840;283;542;784;765;3803;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;22:55:02;351;258;339;832;452;666;200;304;340;877;295;564;815;798;3946;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;23:10:02;365;269;353;866;470;691;208;316;355;913;307;586;847;830;4088;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;23:25:02;379;280;366;899;487;716;216;329;370;950;318;608;878;863;4229;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;23:40:02;393;291;380;933;504;741;224;342;385;987;330;630;910;895;4370;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +28.11.2019;23:55:02;408;302;394;967;521;766;232;354;400;1024;342;651;941;928;4509;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;00:10:02;422;313;409;1001;539;790;241;367;416;1061;353;673;973;960;4649;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;00:25:02;436;325;423;1035;556;815;249;380;431;1099;365;695;1004;993;4787;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;00:40:02;450;336;437;1070;573;840;257;393;447;1138;377;717;1036;1026;4924;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;00:55:02;465;348;452;1104;591;865;265;407;463;1176;388;739;1067;1058;5059;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;01:10:02;479;359;466;1139;608;890;273;420;479;1215;400;761;1099;1091;5191;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;01:25:02;494;371;481;1174;625;915;281;433;496;1254;411;783;1130;1124;5317;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;01:40:02;508;383;496;1209;642;940;289;447;512;1293;423;805;1162;1157;5430;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;01:55:02;523;395;511;1244;660;965;298;460;529;1333;435;827;1193;1190;5515;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;02:10:02;537;407;526;1280;677;989;306;474;545;1373;446;849;1224;1222;5590;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;02:25:02;552;419;540;1315;694;1014;314;487;562;1414;458;870;1256;1255;5666;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;02:40:02;566;432;556;1351;711;1039;322;501;579;1455;470;892;1287;1288;5745;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;02:55:02;581;444;571;1387;728;1064;330;514;596;1496;481;914;1319;1321;5826;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;03:10:02;595;457;586;1423;745;1089;338;528;614;1538;492;936;1350;1354;5909;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;03:25:02;610;469;601;1460;762;1113;347;542;631;1580;504;958;1382;1387;5994;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;03:40:02;624;482;617;1496;779;1138;355;556;649;1623;516;980;1414;1420;6081;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;03:55:02;639;495;633;1533;796;1163;363;570;667;1665;527;1002;1445;1453;6168;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;04:10:02;654;508;649;1570;813;1188;371;585;685;1709;539;1024;1476;1486;6257;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;04:25:02;669;521;665;1608;830;1212;380;599;704;1753;550;1046;1508;1519;6347;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;04:40:02;683;535;681;1645;847;1237;388;613;722;1797;562;1068;1539;1552;6438;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;04:55:02;698;548;697;1683;864;1262;396;628;741;1842;573;1091;1570;1585;6530;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;05:10:02;713;562;714;1721;882;1287;405;643;760;1887;585;1113;1602;1619;6622;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;05:25:02;729;576;731;1760;899;1312;414;658;780;1933;597;1135;1633;1652;6714;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;05:40:02;744;590;749;1799;916;1337;423;673;799;1979;609;1158;1665;1686;6807;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;05:55:02;760;605;766;1838;934;1362;431;688;819;2026;621;1180;1696;1719;6901;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;06:10:02;775;619;783;1878;951;1388;440;704;839;2074;633;1203;1727;1753;6994;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;06:25:02;791;634;801;1918;968;1413;449;720;860;2122;645;1225;1759;1787;7087;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;06:40:02;806;650;819;1958;986;1438;458;736;881;2171;656;1248;1791;1820;7180;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;06:55:02;822;665;837;1998;1004;1463;468;752;902;2220;669;1271;1822;1855;7273;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;07:10:02;838;681;855;2039;1021;1489;477;768;923;2269;681;1294;1853;1888;7365;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;07:25:02;854;696;873;2080;1038;1514;486;784;945;2319;693;1316;1884;1922;7456;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;07:40:02;870;712;892;2121;1056;1539;495;800;966;2370;704;1339;1916;1955;7547;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;07:55:02;886;728;910;2163;1073;1564;505;817;988;2422;717;1362;1947;1990;7638;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;08:10:02;902;744;929;2205;1091;1590;514;833;1011;2473;729;1385;1978;2023;7728;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;08:25:02;918;761;948;2247;1108;1615;523;850;1033;2526;741;1408;2009;2057;7817;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;08:40:02;934;777;967;2290;1126;1641;533;867;1056;2579;753;1431;2040;2090;7906;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;08:55:02;950;794;987;2333;1143;1666;542;884;1079;2633;765;1453;2071;2124;7995;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;09:10:02;967;811;1006;2376;1161;1691;552;901;1102;2687;777;1476;2102;2158;8083;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;09:25:02;979;824;1021;2415;1174;1713;557;914;1122;2738;786;1496;2130;2187;8165;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;09:40:02;995;841;1041;2459;1191;1738;566;931;1146;2793;797;1518;2160;2220;8250;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;09:55:02;1012;859;1061;2504;1209;1763;576;949;1170;2850;809;1541;2191;2254;8335;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;10:10:02;1028;877;1082;2548;1227;1789;586;966;1195;2906;821;1564;2222;2288;8418;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;10:25:02;1045;895;1103;2593;1244;1815;596;984;1220;2964;833;1587;2252;2321;8500;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;10:40:02;1061;913;1125;2639;1262;1840;605;1002;1245;3022;846;1610;2283;2355;8581;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;10:55:02;1078;931;1146;2684;1279;1866;615;1020;1270;3081;858;1633;2313;2388;8660;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;11:10:02;1094;949;1167;2730;1297;1891;625;1038;1296;3140;870;1656;2343;2422;8738;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +29.11.2019;11:14:24;1099;955;1173;2743;1302;1898;627;1044;1303;3157;873;1663;2352;2431;8760;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +Stopped;29.11.2019;11:14:24 diff --git a/inst/extdata/mic_DIETER_6661-6690_2020-02-10_Project1.csv b/inst/extdata/mic_DIETER_6661-6690_2020-02-10_Project1.csv new file mode 100644 index 0000000000000000000000000000000000000000..6d7eed7160714f1a00a1a40e138099af88a84cb5 --- /dev/null +++ b/inst/extdata/mic_DIETER_6661-6690_2020-02-10_Project1.csv @@ -0,0 +1,91 @@ +Start Date;13.02.2020 +Start Time;17:51:24 +Store Interval;15;min +Threshold;1.0;Volt +Puls On Time;1000;ms +Puls Off Time;3000;ms + +Date;Time;S1;S2;S3;S4;S5;S6;S7;S8;S9;S10;S11;S12;S13;S14;S15;S16;S17;S18;S19;S20;S21;S22;S23;S24;S25;S26;S27;S28;S29;S30 +13.02.2020;18:06:24;7;14;0;0;15;21;123;11;24;0;8;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;18:21:24;18;33;0;0;35;45;241;27;53;0;20;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;18:36:24;32;53;3;0;55;70;356;43;84;0;33;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;18:51:24;45;73;8;3;75;95;468;60;116;0;45;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;19:06:24;60;94;13;8;94;121;576;77;147;0;58;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;19:21:24;74;114;19;14;114;146;682;94;180;0;71;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;19:36:24;88;135;24;19;134;172;785;110;212;0;83;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;19:51:24;103;157;30;25;153;198;885;127;245;0;96;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;20:06:24;118;178;35;31;172;225;983;143;278;0;108;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;20:21:24;133;200;41;37;191;251;1080;160;311;0;120;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;20:36:24;148;222;46;42;211;278;1174;176;343;0;133;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;20:51:24;164;245;52;48;231;305;1266;193;377;0;144;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;21:06:24;175;263;55;50;246;328;1354;205;406;0;152;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;21:21:24;191;286;57;54;266;356;1443;221;439;0;164;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;21:36:24;207;309;63;60;286;383;1531;238;473;0;176;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;21:51:24;223;332;68;66;305;411;1617;254;507;0;188;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;22:06:24;239;355;74;72;324;439;1702;270;541;0;199;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;22:21:24;256;378;79;78;344;467;1785;287;576;0;211;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;22:36:24;273;402;85;84;363;495;1867;303;610;0;222;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;22:51:24;290;425;90;90;382;523;1948;319;645;0;233;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;23:06:24;307;449;95;96;401;552;2027;335;681;0;245;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;23:21:24;324;473;101;102;421;580;2105;351;716;0;256;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;23:36:24;342;497;106;108;440;609;2182;367;752;0;267;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +13.02.2020;23:51:24;359;521;111;115;458;637;2258;383;788;0;278;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;00:06:24;377;546;117;121;477;666;2333;399;825;0;289;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;00:21:24;396;571;122;128;497;695;2406;416;862;0;300;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;00:36:24;414;596;127;134;516;724;2479;432;900;0;311;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;00:51:24;431;619;132;140;532;752;2549;446;935;0;321;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;01:06:24;449;644;134;144;551;780;2619;461;973;0;331;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;01:21:24;469;670;139;151;570;810;2689;477;1012;0;342;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;01:36:24;488;696;145;158;589;840;2758;494;1052;0;353;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;01:51:24;508;723;150;165;608;869;2826;510;1092;0;364;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;02:06:24;528;749;155;173;627;899;2893;526;1132;0;375;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;02:21:24;548;776;160;180;647;929;2959;542;1173;0;386;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;02:36:24;569;804;165;187;666;960;3025;558;1214;0;397;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;02:51:24;590;831;170;195;685;990;3089;575;1256;0;408;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;03:06:24;611;859;175;203;704;1021;3153;591;1299;0;420;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;03:21:24;630;885;180;208;721;1049;3214;605;1340;0;429;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;03:36:24;651;914;181;215;740;1080;3276;620;1384;0;439;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;03:51:24;673;943;187;223;760;1111;3338;637;1428;0;450;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;04:06:24;696;973;192;232;779;1143;3399;653;1473;0;462;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;04:21:24;719;1003;197;240;799;1174;3460;670;1519;0;473;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;04:36:24;742;1033;202;249;819;1206;3520;687;1566;0;484;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;04:51:24;765;1064;207;258;838;1238;3579;703;1613;0;496;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;05:06:24;789;1096;212;266;858;1271;3637;720;1660;0;507;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;05:21:24;813;1128;217;275;878;1304;3695;737;1709;0;518;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;05:36:24;838;1160;221;285;898;1337;3752;754;1758;0;530;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;05:51:24;863;1193;227;294;919;1371;3809;771;1808;0;542;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;06:06:24;888;1226;231;304;939;1404;3865;788;1859;0;553;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;06:21:24;914;1260;236;313;960;1439;3920;805;1910;0;565;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;06:36:24;941;1295;243;324;981;1474;3975;822;1964;0;577;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;06:51:24;965;1327;243;330;998;1507;4028;836;2014;0;586;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;07:06:24;993;1363;247;340;1020;1542;4082;854;2068;0;598;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;07:21:24;1021;1399;252;350;1041;1579;4135;871;2123;0;610;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;07:36:24;1049;1436;257;361;1062;1616;4188;888;2179;0;622;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;07:51:24;1078;1473;262;371;1084;1654;4241;906;2235;0;634;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;08:06:24;1108;1511;267;382;1105;1692;4293;924;2293;0;646;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;08:21:24;1138;1550;272;394;1127;1732;4344;941;2352;0;658;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;08:36:24;1168;1590;277;405;1150;1771;4395;959;2411;0;671;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;08:51:24;1200;1630;281;416;1172;1812;4446;977;2472;0;683;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;09:06:24;1231;1671;286;428;1195;1854;4496;995;2533;0;696;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;09:21:24;1264;1712;291;439;1218;1896;4545;1012;2596;0;708;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;09:36:24;1297;1755;296;451;1241;1940;4595;1030;2660;0;721;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;09:51:24;1331;1798;301;464;1265;1984;4644;1048;2724;0;734;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;10:06:24;1365;1841;305;476;1289;2030;4692;1066;2789;0;747;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;10:21:24;1400;1886;310;488;1312;2077;4740;1084;2856;0;760;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;10:36:24;1435;1931;314;500;1337;2125;4787;1102;2923;0;772;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;10:51:24;1472;1977;319;513;1362;2174;4835;1120;2991;0;786;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;11:06:24;1510;2025;325;527;1388;2226;4883;1140;3062;0;800;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;11:21:24;1548;2073;332;540;1414;2279;4929;1159;3133;0;814;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;11:36:24;1585;2121;332;552;1438;2331;4974;1175;3202;0;826;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;11:51:24;1626;2171;338;567;1465;2387;5021;1195;3276;0;841;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;12:06:24;1666;2223;343;582;1493;2445;5067;1209;3350;0;855;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;12:21:24;1707;2274;347;596;1521;2503;5112;1231;3424;0;869;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;12:36:24;1749;2326;351;610;1549;2564;5157;1251;3499;0;884;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;12:51:24;1791;2380;356;625;1577;2626;5202;1271;3575;0;898;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;13:06:24;1834;2434;360;640;1606;2690;5246;1290;3652;0;913;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;13:21:24;1878;2490;366;655;1637;2757;5291;1310;3730;0;929;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;13:36:24;1924;2547;372;672;1668;2825;5336;1330;3809;0;944;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;13:51:24;1969;2605;378;688;1700;2895;5381;1350;3889;0;960;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +14.02.2020;14:02:05;2002;2647;384;701;1725;2946;5412;1365;3947;0;972;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 + +Stopped;14.02.2020;14:02:05 diff --git a/inst/extdata/w_DIETER_6391-6420_2019-11-26_Project1.xlsx b/inst/extdata/w_DIETER_6391-6420_2019-11-26_Project1.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..6fad19859559581682d3e7d2b75633c32eb0b73e Binary files /dev/null and b/inst/extdata/w_DIETER_6391-6420_2019-11-26_Project1.xlsx differ diff --git a/inst/extdata/w_DIETER_6661-6690_2020-02-10_Project1.xlsx b/inst/extdata/w_DIETER_6661-6690_2020-02-10_Project1.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..cb1335e39ed3086eecbb3ba5b26620faaf838e91 Binary files /dev/null and b/inst/extdata/w_DIETER_6661-6690_2020-02-10_Project1.xlsx differ diff --git a/inst/workflow.R b/inst/workflow.R index 222c470f0bae25c50bf6d0c6524f4abc165872d1..19e393a7a9ca562a9323a5e46d8b1bd492ae67e6 100644 --- a/inst/workflow.R +++ b/inst/workflow.R @@ -1,11 +1,63 @@ -# File => New Project => +# initial setup + +library(available) +available("o2eie") + +# File => New Project => Package with git library(devtools) use_description() use_namespace() use_git() use_package("dplyr") -use_package("leaflet") -use_package("lavaan") -use_gpl3_license(name = "Guillaume Patoine") \ No newline at end of file +use_pipe() +use_gpl3_license() + + +# functions scripts + +use_r("reading_data") +use_r("calculate") +use_r("plot") +use_r("review") + +# TODO check o2_prepare_files and o2_calculation for vignette ideas and samples scripts + + +# repeating workflow ------------------------------------------------------ + +document() +check() +spell_check() +build() +tidy_dir("/R") + + + + + + +# add readme +use_readme_rmd() +build_readme() + +use_vignette("o2eie_vignette") + + + +# data -------------------------------------------------------------------- + + +# https://r-pkgs.org/data.html +# system.file("extdata", "mtcars.csv", package = "readr") + + + +# optional ---------------------------------------------------------------- + +# source("https://install-github.me/MangoTheCat/goodpractice") +remotes::install_github("MangoTheCat/goodpractice", force = TRUE) +library(goodpractice) +gp() + diff --git a/man/calc_hour_diffs.Rd b/man/calc_hour_diffs.Rd new file mode 100644 index 0000000000000000000000000000000000000000..0e3ae3d3dd7e74b13547f51fdf2a3fbc16e41ae5 --- /dev/null +++ b/man/calc_hour_diffs.Rd @@ -0,0 +1,18 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/reading_writing.R +\name{calc_hour_diffs} +\alias{calc_hour_diffs} +\title{Calculate hourly differences} +\usage{ +calc_hour_diffs(x) +} +\arguments{ +\item{x}{} +} +\value{ + +} +\description{ +Uses the difference between every fourth value, similar to calculations +using the Excel template. +} diff --git a/man/check_wei_format.Rd b/man/check_wei_format.Rd new file mode 100644 index 0000000000000000000000000000000000000000..7512e2cb92d256e98931ad83fff402f4dfcc399a --- /dev/null +++ b/man/check_wei_format.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/reading_writing.R +\name{check_wei_format} +\alias{check_wei_format} +\title{Check weighing sheet format} +\usage{ +check_wei_format(path) +} +\arguments{ +\item{path}{} +} +\value{ + +} +\description{ +Either all in one ws or split on two +} diff --git a/man/o2_bas.Rd b/man/o2_bas.Rd new file mode 100644 index 0000000000000000000000000000000000000000..6dc950a656eebb6aea7c39781160b53ee0bdc36b --- /dev/null +++ b/man/o2_bas.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/calculating.R +\name{o2_bas} +\alias{o2_bas} +\title{Title} +\usage{ +o2_bas(data, plot = FALSE, only_sets = FALSE) +} +\arguments{ +\item{data}{} + +\item{only_sets}{logical if TRUE will only recalculate basal measurements for entries that have bas_set value} +} +\value{ + +} +\description{ +Title +} diff --git a/man/o2_corr_factors.Rd b/man/o2_corr_factors.Rd new file mode 100644 index 0000000000000000000000000000000000000000..9046fe60b171ed24c571ed6951b1b6502bc1aa73 --- /dev/null +++ b/man/o2_corr_factors.Rd @@ -0,0 +1,14 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/calculating.R +\name{o2_corr_factors} +\alias{o2_corr_factors} +\title{O2 machine factors} +\usage{ +o2_corr_factors() +} +\value{ +tibble of factors +} +\description{ +O2 machine factors +} diff --git a/man/o2_corr_fct.Rd b/man/o2_corr_fct.Rd new file mode 100644 index 0000000000000000000000000000000000000000..a222109e62991ce56c223de43c5b0ef048b2eb21 --- /dev/null +++ b/man/o2_corr_fct.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/calculating.R +\name{o2_corr_fct} +\alias{o2_corr_fct} +\title{Title} +\usage{ +o2_corr_fct(dev, seq, meas) +} +\arguments{ +\item{dev}{} + +\item{seq}{} + +\item{meas}{} +} +\value{ + +} +\description{ +Title +} diff --git a/man/o2_meas_time.Rd b/man/o2_meas_time.Rd new file mode 100644 index 0000000000000000000000000000000000000000..65200325a4de68cce2029a0da9b80045afb2bbed --- /dev/null +++ b/man/o2_meas_time.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/reading_writing.R +\name{o2_meas_time} +\alias{o2_meas_time} +\title{Title} +\usage{ +o2_meas_time(file) +} +\arguments{ +\item{file}{} +} +\value{ + +} +\description{ +Title +} diff --git a/man/o2_process_from_table1.Rd b/man/o2_process_from_table1.Rd new file mode 100644 index 0000000000000000000000000000000000000000..720b2f6084342bdb4a5ff32699782e39eb00fa81 --- /dev/null +++ b/man/o2_process_from_table1.Rd @@ -0,0 +1,24 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/calculating.R +\name{o2_process_from_table1} +\alias{o2_process_from_table1} +\title{Process O2 table} +\usage{ +o2_process_from_table1( + w_file, + raw_files = "from_wei", + combine_names = "_", + plot = FALSE +) +} +\arguments{ +\item{w_file}{} + +\item{plot}{} +} +\value{ +tibble +} +\description{ +The function looks for the raw data files in the same directory +} diff --git a/man/o2_raw_date.Rd b/man/o2_raw_date.Rd new file mode 100644 index 0000000000000000000000000000000000000000..99373cef872973d0296a6c6ebd616104c98d2232 --- /dev/null +++ b/man/o2_raw_date.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/reading_writing.R +\name{o2_raw_date} +\alias{o2_raw_date} +\title{Title} +\usage{ +o2_raw_date(file) +} +\arguments{ +\item{file}{} +} +\value{ + +} +\description{ +Title +} diff --git a/man/o2_read_machine_file.Rd b/man/o2_read_machine_file.Rd new file mode 100644 index 0000000000000000000000000000000000000000..c603f3bda4b9f0d55f0bb1b14dbd6f51d10189e7 --- /dev/null +++ b/man/o2_read_machine_file.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/reading_writing.R +\name{o2_read_machine_file} +\alias{o2_read_machine_file} +\title{Read Machine File} +\usage{ +o2_read_machine_file(path) +} +\arguments{ +\item{path}{to the file} +} +\value{ + +} +\description{ +Read Machine File +} diff --git a/man/pipe.Rd b/man/pipe.Rd new file mode 100644 index 0000000000000000000000000000000000000000..a648c2969b222841abe76fb2e13c62c351078b2e --- /dev/null +++ b/man/pipe.Rd @@ -0,0 +1,20 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/utils-pipe.R +\name{\%>\%} +\alias{\%>\%} +\title{Pipe operator} +\usage{ +lhs \%>\% rhs +} +\arguments{ +\item{lhs}{A value or the magrittr placeholder.} + +\item{rhs}{A function call using the magrittr semantics.} +} +\value{ +The result of calling \code{rhs(lhs)}. +} +\description{ +See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details. +} +\keyword{internal} diff --git a/man/plot_1cmic.Rd b/man/plot_1cmic.Rd new file mode 100644 index 0000000000000000000000000000000000000000..4deffddb3a46f4720fc8f84de16cd77a16956c86 --- /dev/null +++ b/man/plot_1cmic.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/plotting.R +\name{plot_1cmic} +\alias{plot_1cmic} +\title{Create one plot of Cmic} +\usage{ +plot_1cmic(data) +} +\arguments{ +\item{data}{} +} +\value{ +ggplot object +} +\description{ +Create one plot of Cmic +} diff --git a/man/reformat_weish.Rd b/man/reformat_weish.Rd new file mode 100644 index 0000000000000000000000000000000000000000..939e8489a6070185cf6f00055b048b22ede490d3 --- /dev/null +++ b/man/reformat_weish.Rd @@ -0,0 +1,21 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/reading_writing.R +\name{reformat_weish} +\alias{reformat_weish} +\title{Reformat weighing sheet} +\usage{ +reformat_weish(df, info = NULL, template = "iSBio") +} +\arguments{ +\item{df}{} + +\item{info}{} + +\item{template}{} +} +\value{ + +} +\description{ +Changed the weighing sheet format to match the template used +} diff --git a/o2eie.Rproj b/o2eie.Rproj index 8e3c2ebc99e2e337f7d69948b93529a437590b27..eaa6b8186b78d7abf7fe67380dd4de7da57fd361 100644 --- a/o2eie.Rproj +++ b/o2eie.Rproj @@ -11,3 +11,8 @@ Encoding: UTF-8 RnwWeave: Sweave LaTeX: pdfLaTeX + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source +PackageRoxygenize: rd,collate,namespace diff --git a/vignettes/.gitignore b/vignettes/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..097b241637da023174b0f2e3715bd0291d9ded37 --- /dev/null +++ b/vignettes/.gitignore @@ -0,0 +1,2 @@ +*.html +*.R diff --git a/vignettes/bas.pdf b/vignettes/bas.pdf new file mode 100644 index 0000000000000000000000000000000000000000..4a785b2302f863fd7bade08face44562839e07d8 Binary files /dev/null and b/vignettes/bas.pdf differ diff --git a/vignettes/cmic.pdf b/vignettes/cmic.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c51afec5efb588b86209c87b595ca0b624736e47 Binary files /dev/null and b/vignettes/cmic.pdf differ diff --git a/vignettes/mgro.pdf b/vignettes/mgro.pdf new file mode 100644 index 0000000000000000000000000000000000000000..52df6e79c079359bb46d575f92ec172c0fc97867 Binary files /dev/null and b/vignettes/mgro.pdf differ diff --git a/vignettes/o2eie_vignette.Rmd b/vignettes/o2eie_vignette.Rmd new file mode 100644 index 0000000000000000000000000000000000000000..624552b4fbccc6f7cfa588946680e43160b053ff --- /dev/null +++ b/vignettes/o2eie_vignette.Rmd @@ -0,0 +1,209 @@ +--- +title: "o2eie_vignette" +output: rmarkdown::html_vignette +vignette: > + %\VignetteIndexEntry{o2eie_vignette} + %\VignetteEngine{knitr::rmarkdown} + %\VignetteEncoding{UTF-8} +--- + +```{r, include = FALSE} +knitr::opts_chunk$set( + collapse = TRUE, + comment = "#>" +) +``` + +```{r setup} +library(o2eie) + +# library(gptools) + +``` + +```{r} + +weights <- list.files(system.file("inst/extdata", package = "o2eie"), + pattern = "^w_.*\\.xlsx", + full.names = T) + +o2meas <- o2_process_all(files = weights) + +o2meas %>% coldesc + +bas_report(o2meas, file = "bas.pdf") +cmic_report(o2meas, file = "cmic.pdf") +mgrow_report(data = o2meas, file = "mgro.pdf") + +o2meas %>% + bas_report("bas.pdf") %>% + cmic_report("cmic.pdf") %>% + mgrow_report("mgrow.pdf") + + + + + + +``` + +```{r adjust-times} + + +bas_corr <- tribble( + ~uID, ~times, + "170_01-1_24", 9:19, + "203_01-1_24", 43:53, + "701−2_24", 43:53, + + # late start + "034_01-1_24", 24:40, + "034_01-2_24", 24:40, + + "453_04-B_24", 25:35, + ) + +o2meas <- o2meas %>% + set_bas_times(bas_corr) %>% + o2_bas(only_sets = TRUE) + + +``` + + +```{r checks} + +# comments +# duplicated + remeasurements + +# no weights +summary %>% filter(is.na(wei_samp_dry)) + +# pulse test +summary %>% count(pulse_cmic_test) +summary %>% count(pulse_cmic_max) %>% arrange(desc(pulse_cmic_max)) + + +# no BAS value: only if dried soil, OK +summary %>% filter(is.na(basal)) + +# no cmic value: 0, OK +summary %>% filter(is.na(cmic)) #%>% View + +# qO2: OK +summary %>% filter(is.na(qo2)) #%>% View + + +# negative water content +summary %>% pull(h2o_perc) %>% range +summary %>% pull(h2o_perc) %>% hist +summary %>% filter(h2o_perc < 0) #%>% View +# NOTE fixed ~6 typos in the weighing sheets. Remaining values close to zero are +# probably due to very low water content and some soil loss during measurement +summary <- summary %>% mutate(h2o_perc = if_else(h2o_perc < 0, 0, h2o_perc)) + + +# same lists for raw data: OK +{ + same_raw_fct <- function(bas, cmic) { + + if (length(bas) == length(cmic)) { + identical(bas, cmic) + } else { + FALSE + } + + } + + summary <- summary %>% mutate(same_raw = map2_lgl(bas_raw, cmic_raw, same_raw_fct)) + summary %>% count(same_raw) + summary %>% filter(same_raw) #%>% View + summary %>% filter(same_raw) %>% pull(weight_file) %>% unique %>% sort +} + + +# no raw data values: OK +{ + all_na <- function(raw) { + all(is.na(raw)) + + } + + summary <- summary %>% mutate(bas_allNA = map_lgl(bas_raw, all_na), + cmic_allNA = map_lgl(cmic_raw, all_na)) + + summary %>% count(bas_allNA) + summary %>% count(cmic_allNA) +} + + +# check extreme values ---------------------------------------------------- +# hist, range + +# basal +var <- summary %>% pull(basal) %>% sort +var %>% range(na.rm = TRUE) +var %>% plot +var %>% hist +var %>% rev %>% .[1:20] + +summary %>% filter(basal > 15) %>% arrange(desc(basal)) #%>% View + +# NOTE CARE, basal value for 701-2_24 is huge! There is no typo from the weighing sheet + +summary %>% filter(uID == "701-2_24") %>% pull(pulse_bas_max) + + + + +summary %>% pull(cmic) %>% range(na.rm = TRUE) +summary %>% pull(cmic) %>% hist + +# zero values basal +summary %>% filter(basal == 0) %>% #View + pull(uID) + +# same +summary %>% filter(is.na(bas_cova)) %>% + pull(uID) + +summary$bas_cova %>% sort %>% plot +summary %>% arrange(desc(bas_cova)) %>% head(20) %>% select(uID, basal, bas_cova) +summary %>% arrange(desc(bas_cova)) %>% head(20) %>% View +summary %>% arrange(desc(bas_cova)) %>% head(20) %>% pull(uID) %>% cat(sep = "\n") + + + + + +``` + + + +```{r} +# remeasurements +# + + +isbd %>% filter(comment %>% str_detect("meas")) %>% #View + pull(comment) %>% unique + +# duplicated and remeasured: take later date +(remeas <- intersect(reps, isbd %>% filter(comment %>% str_detect("meas")) %>% pull(uID))) + +# fct: remove first measurement +rem_1meas <- function(data, uniID) { + + message(uniID) + + dates <- data %>% filter(uID == uniID) %>% pull(date_bas_meas) + + stopifnot(length(dates) == 2) + + data %>% filter(!(uID == uniID & date_bas_meas == min(dates))) + +} + +summary <- reduce(remeas, rem_1meas, .init = summary) +``` +