get_ncov: Get NCoV data

Description Usage Arguments Value Examples

View source: R/ncovr.R

Description

Get NCoV data

Usage

1
2
3
4
5
6
get_ncov(
  method = c("ncovr", "tidy", "api", "china", "csv", "json"),
  port = c("area", "overall", "news", "rumors"),
  base = "https://lab.isaaclin.cn/nCoV/api/",
  if_en = FALSE
)

Arguments

method

character.

port

character. The port(s). Valid only for the 'api' method

base

character. The link of the database api.

Value

a list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_ncov("overall")

us_current <- ncovr::get_ncov(method = "api", port = "v1/states/current.json", 
    base = "https://covidtracking.com/api/")

ports <- c("v1/states/current.json", "v1/states/daily.json", 
    "v1/states/info.json", "v1/us/current.json", "v1/us/daily.json", 
    "v1/urls.json", "v1/states/screenshots.json")
us <- ncovr::get_ncov(method = "api", port = ports, 
    base = "https://covidtracking.com/api/")

pzhaonet/ncovr documentation built on June 12, 2020, 8:15 p.m.