read_daymet | R Documentation |
Reads Single Pixel Daymet data into a nested list or tibble, preserving header data and critical file name information.
read_daymet(file, site, skip_header = FALSE, simplify = TRUE)
file |
a Daymet Single Pixel data file |
site |
a sitename (default = |
skip_header |
do not ingest header meta-data, logical |
simplify |
output tidy data (tibble), logical |
A nested data structure including site meta-data, the full header and the data as a 'data.frame()'.
## Not run:
# download the data
download_daymet(
site = "Daymet",
start = 1980,
end = 1980,
internal = FALSE,
silent = TRUE
)
# read in the Daymet file
df <- read_daymet(paste0(tempdir(),"/Daymet_1980_1980.csv"))
# print data structure
print(str(df))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.