View source: R/ExportDailyValuesToCSV.R
ExportDailyValuesToCSV | R Documentation |
This function exports daily values output by the importDVs function to a CSV file.
ExportDailyValuesToCSV(dailyValues, fileName, metric = TRUE)
dailyValues |
daily values output by the importDVs in the waterData package |
fileName |
file name to save CSV file to |
metric |
convert value to metric |
This function outputs to the working directory. The directory can be set with the setwd command.
This function only supports discharge data.
site = list( staid = "02131000", # site number code = "00060", # code for discharge stat = "00003", # code for mean ) DailyValues <- do.call(importDVs, site) ExportDailyValuesToCSV(DailyValues, paste0("Daily_Values_for_Site_", site$staid))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.