-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
42 lines (27 loc) · 935 Bytes
/
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
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
options(tibble.print_min = 7, tibble.print_max = 7)
```
## Get coronavirus data
This is a simple function to get the structured data from this **webpage**: [https://www.worldometers.info/coronavirus/#countries](https://www.worldometers.info/coronavirus/#countries).
## Usage
The use of this function is simple. It is only necessary to obtain it and execute it assigning it to an object.
```{r message=FALSE, warning=FALSE}
# Get function
source("https://raw.githubusercontent.com/brianmsm/get_coronadata/master/get_coronadata.R")
# Get data without NA
coronadata <- get_coronadata()
coronadata
```
If you prefer to keep the value of `NA` instead of 0, enter the argument `show.na = TRUE`
```{r message=FALSE, warning=FALSE}
# Get data with NA
coronadata <- get_coronadata(show.na = TRUE)
coronadata
```