convert_df_to_srl {PHENTHAUproc}R Documentation

Convert dataframe to SpatRaster list

Description

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.

Usage

convert_df_to_srl(x, date_col = "date")

Arguments

x

dataframe (tmean, tmax, tmin, date)

date_col
  • character - name for date column which will be used to create time attribute of SpatRaster.

Value

SpatRaster list (tmean, tmax, tmin) - numeric - with time attribute

See Also

Other SpatRaster transformation: convert_doy_to_logical(), convert_hour_to_meanminmax(), convert_logical_to_doy(), convert_logical_to_time(), convert_sr_to_cvec()


[Package PHENTHAUproc version 1.1 Index]