read_hcd | R Documentation |
Reads data from CSV files download from the Canada Historical Climate Data website. The function knows about hourly, daily, and monthly data formatted files.
read_hcd(file, flags = FALSE, clean = TRUE, ...)
file |
Either a path to a file, a connection. See argument |
flags |
Logical; should variable flag columns be preserved. The default results in these columns being dropped from the returned data. |
clean |
Logical; should variable names be cleaned? The default replaces the variable identifiers from the CSV files with more useful names for use in R code. |
... |
Further arguments passed to |
A tbl_df
.
Gavin L. Simpson
import from readr & remove utils import
## read a monthly data file
read_hcd(system.file("extdata/2855-monthly-data.csv", package = "canadaHCD"))
## read a daily data file
read_hcd(system.file("extdata/2855-daily-data-2015.csv",
package = "canadaHCD"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.