precip_split: Splitting precipitation values to 6/12/24 hour periods and...

View source: R/precip_split.R

precip_splitR Documentation

Splitting precipitation values to 6/12/24 hour periods and converting to numeric

Description

Internal function for splitting precipitation field provided by Ogimet and converting string to numerical value

Usage

precip_split(precip, pattern = "/12")

Arguments

precip

vector of characters with precipitation field from Ogimet

pattern

6h-12h-24h precipitation pattern to obtain written as: "/6h", "/12h" , "/24h" (see examples)

Examples


 df = climate:::ogimet_hourly(station = 12330)
 climate:::precip_split(df$Precmm, pattern = "/12") # to get 12h precipitation amounts



climate documentation built on Aug. 9, 2022, 5:08 p.m.