search for: the_missing_valu

Displaying 1 result from an estimated 1 matches for "the_missing_valu".

Did you mean: the_missing_value
2012 Oct 04
2
How to build a list with missing values? What is missing, anyway?
...arglist <- rep(list(NULL), length(argnames)) names(arglist) <- argnames make_function(arglist, quote(a+b+c)) I get a function where NULL is the default value for each argument, rather than a function with no default values. It seems I can assign a "missing value" to a variable by the_missing_value <- formals(function(x) NULL)[[1]] or by the_missing_value = quote(expr=) However this backfires when I try to use it: > arglist <- rep(list(the_missing_value), length(argnames)) Error in list(the_missing_value) : 'the_missing_value' is missing > arglist <- rep(list(NUL...