View source: R/df_work_functions.R
read_psi_data | R Documentation |
Given a site code and a route, read_psi_data
will return the selected
psi_data object
read_psi_data(site_code, folder = ".")
site_code |
A character vector with one site code |
folder |
Route to the folder containing the |
an psi_data object with the selected site data.
# Let's access the data in "folder". This typically is the folder where the
# psi data is, but in this example we will create a temporal folder with some
# data to test the function
folder <- tempdir()
save(ARG_TRE, file = file.path(folder, 'ARG_TRE.RData'))
save(ARG_MAZ, file = file.path(folder, 'ARG_MAZ.RData'))
# now we read a single site
ARG_TRE_test <- read_psi_data('ARG_TRE', folder)
ARG_TRE_test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.