read_importrainmany: Run 'read_importrain' for multiple years

View source: R/read_importrainmany.R

read_importrainmanyR Documentation

Run read_importrain for multiple years

Description

Run read_importrain for multiple years

Usage

read_importrainmany(yrs, quiet = FALSE, sleep = 5)

Arguments

yrs

numeric vector of years to download (do not need to be in order)

quiet

logical passed to read_importrain to suppress messages (default)

sleep

numeric number of seconds to pause between years

Details

This function is a simple wrapper for read_importrain to download multiple years of rainfall data from the Southwest Florida Water Management District's (SWFWMD) ftp site: ftp://ftp.swfwmd.state.fl.us/pub/radar_rainfall/Daily_Data/. The function will pause for sleep seconds between years to avoid overloading the server.

Value

A data frame identical to that returned by read_importrain with the years requested

Examples

## Not run: 
read_importrainmany(c(2021, 2022), quiet = F)

## End(Not run)

tbep-tech/tbeptools documentation built on April 13, 2025, 4:50 p.m.