Skip to contents

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 .dat argument to matsindf_apply().

FUN

The FUN argument to matsindf_apply().

DF

The assembled DF inside matsindf_apply().

types

The types object assembled inside matsindf_apply().

Value

The appropriate return value from matsindf_apply(), either a zero-length list or a zero-row data frame.