Type: Package
Title: Philippine Tropical Cyclones Data
Version: 0.1.1
Description: The Philippines frequently experiences tropical cyclones (called 'bagyo' in the Filipino language) because of its geographical position. These cyclones typically bring heavy rainfall, leading to widespread flooding, as well as strong winds that cause significant damage to human life, crops, and property. Data on cyclones are collected and curated by the Philippine Atmospheric, Geophysical, and Astronomical Services Administration or 'PAGASA' and made available through its website https://bagong.pagasa.dost.gov.ph/tropical-cyclone/publications/annual-report. This package contains Philippine tropical cyclones data in a machine-readable format. It is hoped that this data package provides an interesting and unique dataset for data exploration and visualisation.
License: CC0
Depends: R (≥ 2.10)
Suggests: dplyr, ggplot2, knitr, lubridate, pdftools, rmarkdown, spelling, testthat (≥ 3.0.0), tibble, tidyr
Encoding: UTF-8
Language: en-GB
LazyData: true
RoxygenNote: 7.3.1
URL: https://panukatan.io/bagyo/, https://github.com/panukatan/bagyo
BugReports: https://github.com/panukatan/bagyo/issues
Config/testthat/edition: 3
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2024-04-17 08:50:25 UTC; ernestguevarra
Author: Ernest Guevarra ORCID iD [aut, cre, cph]
Maintainer: Ernest Guevarra <ernest@guevarra.io>
Repository: CRAN
Date/Publication: 2024-04-18 14:02:48 UTC

Philippine Tropical Cyclones Data

Description

The Philippines frequently experiences tropical cyclones (called 'bagyo' in the Filipino language) because of its geographical position. These cyclones typically bring heavy rainfall, leading to widespread flooding, as well as strong winds that cause significant damage to human life, crops, and property. Data on cyclones are collected and curated by the Philippine Atmospheric, Geophysical, and Astronomical Services Administration (PAGASA) and made available through its website. This package contains Philippine tropical cyclones data in a machine-readable format. It is hoped that this data package provides an interesting and unique dataset for data exploration and visualisation as an adjunct to the traditional iris dataset and to the current palmerpenguins dataset.

Usage

bagyo

Format

A data frame with 9 columns and 86 rows:

Variable Description
year Year
category_code Tropical cyclone category code
category_name Tropical cyclone category name
name Name given to the tropical cyclone by Philippine authorities
rsmc_name Name given to the tropical cyclone by RSMC
start Date and time at which cyclone enters Philippine waters
end Date and time at which cyclone leaves Philippine waters
pressure Maximum central pressure in hPa
speed Maximum sustained wind speed in km/h

Author(s)

Maintainer: Ernest Guevarra ernest@guevarra.io (ORCID) [copyright holder]

Source

Data are drawn from PAGASA's Annual Report on Philippine Tropical Cyclones found at https://www.pagasa.dost.gov.ph/tropical-cyclone/publications/annual-report

See Also

Useful links:

Examples

bagyo


Find cyclones information

Description

Find cyclones information

Usage

find_bagyo(.year = NULL, .category = NULL)

Arguments

.year

An integer value for a year or a vector of years of cyclones data to retrieve. Default to NULL to retrieve all years.

.category

A character value or a vector of category code/s or category name/s to retrieve. Default to NULL to retrieve all categories

Value

A data.frame of cyclones information based on specified year and category

Examples

find_bagyo()
find_bagyo(.year = 2017)
find_bagyo(.category = "TD")
find_bagyo(.year = 2017, .category = "TD")


Get a cyclone name

Description

Randomly returns a cyclone name and prints additional information available from the package regarding the cyclone.

Usage

get_bagyo()

Value

A list of information regarding a randomly selected cyclone from the bagyo dataset.

Examples

get_bagyo()


print() helper function for get_bagyo() function

Description

print() helper function for get_bagyo() function

Usage

## S3 method for class 'bagyo'
print(x, ...)

Arguments

x

Object of class bagyo produced by get_bagyo() function

...

Additional print() arguments

Value

Printed output of get_bagyo() function

Examples

get_bagyo()