get_results_for_object: Compute Results From Function Call with Object as Argument

Description Usage Arguments Value

View source: R/support_functions.R

Description

Compute Results From Function Call with Object as Argument

Usage

1
2
get_results_for_object(obj, obj_arg_name, fun, ...,
  tolerate_warnings = TRUE)

Arguments

obj

list R object to be trimmed. _MUST_ inherit from the 'list' class.

obj_arg_name

character what is the name of the parameter, that 'obj' must be set to, when invoking 'fun'. Defaults to NULL, in which case the function assumes, that the 'obj' matches the first parameter of 'fun'.

fun

function function that must return the same results, when invoked with 'obj' both before and after trimming.

...

other (named) arguments for 'fun'.

tolerate_warnings

logical tolerate warnings (=TRUE) Or not (=FALSE) from function call results?

Value

results from function call.


trimmer documentation built on Dec. 19, 2019, 5:07 p.m.