proc.csv {climodr} | R Documentation |
Processing CSV-Data
Description
Calculate averaged sensor values aggregated to a given time interval.
Usage
proc.csv(
envrmt = .GlobalEnv$envrmt,
method = "monthly",
rbind = TRUE,
save_output = TRUE,
...
)
Arguments
envrmt |
variable name of your envrmt list created using climodr's 'envi.create' function. Default = envrmt. |
method |
character. Either "daily", monthly" or "annual". Also depends on the available data. |
rbind |
logical. Create a single file with all climate stations. If FALSE, every station will be saved in a seperate file. |
save_output |
logical. If data should be saved permanently in the Environment put save_output = TRUE. Otherwise the output will be saved in the temporary directory. Default: TRUE. |
... |
arguments passed down from other functions. |
Value
List
See Also
'prep.csv', 'spat.csv', 'fin.csv'
Examples
#create climodr environment and allow terra-functions to use 70% of RAM
envrmt <- envi.create(proj_path = tempdir(),
memfrac = 0.7)
# Load the climodr example data into the current climodr environment
clim.sample(envrmt = envrmt)
#prepare csv-files
prep.csv(envrmt = envrmt,
method = "proc",
save_output = TRUE)
#process csv-files
csv_data <- proc.csv(envrmt = envrmt,
method = "monthly",
rbind = TRUE,
save_output = TRUE)
head(csv_data)
[Package climodr version 1.0.0 Index]