Learn R Programming

climate (version 1.0.1)

precip_split: 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

Run this code
# NOT RUN {
 df = climate:::ogimet_hourly(station = 12330)
 climate:::precip_split(df$Precmm, pattern = "/12") # to get 12h precipitation amounts
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab