writeMonthlyStations

0th

Percentile

Function to read the master list and write a monthly list of stations. This file is critical to the operation of the scraper.

the function reads the master list and writes a local list of stations that report monthly data. It also returns an object dataframe. That dataframe can be fed to downstream processes

Keywords
files
Usage
writeMonthlyStations(filename = MASTER.STATION.LIST, outfile =  MONTHLY.STATION.LIST)
Arguments
filename
The filename of the master list. This is set to a default that should not be changed.
outfile
the local filename. Used by other functions. It should not be changed
Details

reads the master list. Extracts those stations that report monthly. Selects the first year reporting and the web Id for the http request builder. Assigns an Id to every station for file naming and tracking. The id it assigns is used for tracking the scrape progress and recovering from scrape failures.

Value

can be read with read.csv

Aliases
  • writeMonthlyStations
Examples
 ## Not run: 
#    Stations <- writeMonthlyStations()
#  ## End(Not run)
Documentation reproduced from package CHCN, version 1.5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.