View source: R/convert_df_to_srl.R
convert_df_to_srl | R Documentation |
Internal function to create a SpatRaster list out of a dataframe.
By default the dataframe should have a date column called "date". The function is transferring each column into a list object and this object to a 1 col, 1 row nrow nlyr SpatRaster.
convert_df_to_srl(x, date_col = "date")
x |
dataframe (tmean, tmax, tmin, date) |
date_col |
|
SpatRaster list (tmean, tmax, tmin) - numeric - with time attribute
Other SpatRaster transformation:
convert_doy_to_logical()
,
convert_hour_to_meanminmax()
,
convert_logical_to_doy()
,
convert_logical_to_time()
,
convert_sr_to_cvec()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.