You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nope. Det er ikke en fejl. Det er outputtet af args(), jf dokumentationen:
Value
For a closure, a closure with identical formal argument list but an empty (NULL) body.
For a primitive (function), a closure with the documented usage and NULL body. Note that some primitives do not make use of named arguments and match by position rather than name.
NULL in case of a non-function.
Og det bliver jeg ikke supermeget klogere af hvis jeg skal være ærlig...
Men jeg tror (understreger tror) at vi skal forstå det som, at når vi har defineret en funktion:
min_funktion <- function(x, parameter = 47){
x*parameter
}
Så er resultatet af args(min_funktion) :
function(x, parameter = 47)
Der står
function (x, digits = 0)
NULL
The text was updated successfully, but these errors were encountered: