Create a data frame consisting of the input data for matsindf_apply()
Source:R/matsindf_apply.R
build_matsindf_apply_data_frame.Rd
This is an internal helper function that takes the types list and creates a data frame from which calculations can proceed.
Usage
build_matsindf_apply_data_frame(
.dat = NULL,
FUN,
...,
types = matsindf_apply_types(.dat, FUN = FUN, ... = ...)
)
Arguments
- .dat
The value of the
.dat
argument tomatsindf_apply()
, as a list or a data frame.- FUN
The function supplied to
matsindf_apply()
.- ...
The
...
argument supplied tomatsindf_apply()
.- types
The types for
matsindf_apply()
. Supply if already calculated externally. Default istypes = matsindf_apply_types(.dat, FUN = FUN, ... = ...)
.
Value
A data frame (actually, a tibble
)
with columns from dots
, .dat
, and the default values to FUN
,
according to precedence rules for matsindf_apply()
.
Details
This function enforces the precedence rules for matsindf_apply()
, namely that
variables found in ...
take priority over
variables found in .dat
, which take priority over
variables found in the default values of FUN
.