powered by
Internal function for splitting precipitation field provided by Ogimet and converting string to numerical value
precip_split(precip, pattern = "/12")
vector of characters with precipitation field from Ogimet
6h-12h-24h precipitation pattern to obtain written as: "/6h", "/12h" , "/24h" (see examples)
# NOT RUN { df <- 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