-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
66 lines (53 loc) · 2.43 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
output: github_document
editor_options:
chunk_output_type: console
---
<!--
IMAGES:
Insert them with: ![alt text](image.png)
You can also resize them if needed: convert image.png -resize 50% image.png
If you want to center the image, go through HTML code:
<div style="text-align:center"><img src ="image.png"/></div>
REFERENCES:
For references: Put all the bibTeX references in the file "references.bib"
in the current folder and cite the references as @key or [@key] in the text.
Uncomment the bibliography field in the above header and put a "References"
title wherever you want to display the reference list.
-->
```{r general_options, include = FALSE}
knitr::knit_hooks$set(
margin = function(before, options, envir) {
if (before) par(mgp = c(1.5, .5, 0), bty = "n", plt = c(.105, .97, .13, .97))
else NULL
},
prompt = function(before, options, envir) {
options(prompt = if (options$engine %in% c("sh", "bash")) "$ " else "> ")
})
knitr::opts_chunk$set(margin = TRUE, prompt = TRUE, comment = "",
collapse = TRUE, cache = TRUE, autodep = TRUE,
dev.args = list(pointsize = 11), fig.height = 3.5,
fig.width = 4.24725, fig.retina = 2, fig.align = "center")
```
# GPS data
There are 4 files containing GPS coordinates data in the `raw_data/GPS` folder of
the Dropbox:
* `Old Machine 2012-2015.xls` that contains data collected by the IPL staff
using the old GPS device;
* `New Machine2015-2018.xls` that contains data collected by the IPL staff using
the new GPS device;
* `Shared with app.xls` that contains data sent by patients through WhatsApp;
* `IPL Server.xlsx` that contains data sent by patients or volunteers from the
municipality, using the web application developped by IPL.
The data cleaned by this [pipeline](https://ecomore2.github.io/gps/make_data.html),
are saved to the
[`data/pacs.csv`](https://raw.githubusercontent.com/ecomore2/gps/master/data/gps.csv)
CSV file that can be copied and paste to a text file on your computer or downloaded
directly from R into a data frame:
```{r}
if (! "readr" %in% rownames(installed.packages())) install.packages("readr")
pacs <- readr::read_csv("https://raw.githubusercontent.com/ecomore2/gps/master/data/gps.csv", col_types = "icdd")
```
This [summary](https://ecomore2.github.io/gps/summarize_data.html) provides a
real-time overview of the current state of the PACS data set, highlighting
problems that remain to be fixed.