get_global_covid_stats {infectiousR}R Documentation

Get Global COVID-19 Statistics

Description

Retrieves real-time global statistics on COVID-19 from the 'disease.sh' API.

Usage

get_global_covid_stats()

Details

This function sends a GET request to the 'disease.sh' API and parses the returned JSON into a structured and user-friendly data frame. The timestamp is converted to a readable date-time format (in UTC).

Value

A data frame with the following columns:

Note

An internet connection is required to use this function.

References

API Docs: https://disease.sh/docs/#/COVID-19

Examples


global_stats <- get_global_covid_stats()
print(global_stats)



[Package infectiousR version 0.1.0 Index]