handle_empty_data {matsindf} | R Documentation |
Gracefully handle empty data
Description
When empty data are provided to matsindf_apply()
,
care must be take with the return value.
This function assembles the correct zero-row data frame or
zero-length lists.
Usage
handle_empty_data(.dat = NULL, FUN, DF, types)
Arguments
.dat |
The |
FUN |
The |
DF |
The assembled |
types |
The |
Value
The appropriate return value from matsindf_apply()
,
either a zero-length list or a zero-row data frame.
[Package matsindf version 0.4.8 Index]