parse_unit: Parse data variable units

View source: R/parse_unit.R

parse_unitR 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)

jmastats documentation built on April 12, 2025, 1:38 a.m.