parse_unit {jmastats}R Documentation

Parse data variable units

Description

[Stable]

Usage

parse_unit(data, rename = TRUE)

Arguments

data

data

rename

logical

Value

a tbl object

Examples

# For data retrieved with jma_collect(), here is a minimal example.
d <-
tibble::tibble(date = as.Date(c(17742, 17742, 17742, 17742, 17742, 17742), origin = "1970-01-01"),
               time = c(1, 2, 3, 4, 5, 6),
               `precipitation(mm)` = c(0, 0, 0, 0, 0, 0),
               `temperature(℃)` = c(22.4, 22.1, 21, 20.2, 20.4, 23.5))
d |> parse_unit(rename = TRUE)

[Package jmastats version 0.2.1 Index]