Retrieve Weather data from the Network for Environment and Weather Applications (NEWA) at Cornell University.
Usage
newa_nrcc(
client,
year,
month,
station,
base = "http://newa.nrcc.cornell.edu/newaLister",
interval = "hly",
sleep = 6,
table_id = "#dtable",
path = getwd(),
save_file = TRUE
)
Arguments
- client
RSelenium
client.- year
Numeric value with the year.
- month
Numeric value with the month.
- station
String with the station abbreviation. Check the http://newa.cornell.edu/index.php?page=station-pages for a list.
- base
Base URL (default: http://newa.nrcc.cornell.edu/newaLister).
- interval
String with data interval (default: hly, hourly).
- sleep
Numeric value with the number of seconds to wait for the page to load the results (default: 6 seconds).
- table_id
String with the unique HTML ID assigned to the table containing the data (default:
#dtable
)- path
String with path to location where CSV files should be stored (default:
getwd()
).- save_file
Boolean flag to indicate whether or not the output should be stored as a CSV file.