snotel_download: Dowloads snotel data based upon a subset of the sno-tel info...

Description Usage Arguments Examples

View source: R/snotel_download.r

Description

Dowloads snotel data based upon a subset of the sno-tel info as provided by snotel_info()

Usage

1
snotel_download(site_id, path = tempdir(), internal = FALSE)

Arguments

site_id

subset of the sites listed by snotel_info()

path

where to save downloaded files (default = tempdir())

internal

return data to workspace, TRUE or FALSE (default = FALSE)

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# download data for SNOTEL site 429 and 1287, returning data to 
# the R workspace
df <- snotel_download(site_id = c(429,1287), internal = TRUE)

# list a few first rows
head(df)

## End(Not run)

khufkens/snotelr documentation built on June 6, 2020, 8:33 p.m.