Displaying 4 results from an estimated 4 matches for "myfancyfun".
2018 Nov 28
3
named arguments discouraged in `[.data.frame` and `[<-.data.frame`
...data.frame`, `[<-.data.frame` and `[[.data.frame`?
(because this question is of the kind 'why is R designed like this?', I though R-devel would be more appropriate than R-help)
#############################
Background:
Now and then students presents there fancy functions like this:
myfancyfun(d,12,0.3,0.2,500,1000,FALSE,TRUE,FALSE,TRUE,FALSE)
Incomprehensible. Thus, I encourage them to use spaces and name arguments, _at least_ when trying to communicate their code with others. Something like:
myfancyfun(data = d, n = 12, gamma = 0.3, prob = 0.2,
size = 500, niter...
2018 Nov 29
2
named arguments discouraged in `[.data.frame` and `[<-.data.frame`
...data.frame`, `[<-.data.frame` and `[[.data.frame`?
(because this question is of the kind 'why is R designed like this?', I though R-devel would be more appropriate than R-help)
#############################
Background:
Now and then students presents there fancy functions like this:
myfancyfun(d,12,0.3,0.2,500,1000,FALSE,TRUE,FALSE,TRUE,FALSE)
Incomprehensible. Thus, I encourage them to use spaces and name arguments, _at least_ when trying to communicate their code with others. Something like:
myfancyfun(data = d, n = 12, gamma = 0.3, prob = 0.2,
? ? ? ? ? ? ? ? ? ? ? size = 500, niter...
2018 Nov 28
0
named arguments discouraged in `[.data.frame` and `[<-.data.frame`
...me`?
>
> (because this question is of the kind 'why is R designed like this?', I
> though R-devel would be more appropriate than R-help)
>
> #############################
>
> Background:
>
> Now and then students presents there fancy functions like this:
>
> myfancyfun(d,12,0.3,0.2,500,1000,FALSE,TRUE,FALSE,TRUE,FALSE)
>
> Incomprehensible. Thus, I encourage them to use spaces and name arguments,
> _at least_ when trying to communicate their code with others. Something
> like:
>
> myfancyfun(data = d, n = 12, gamma = 0.3, prob = 0.2,
>...
2018 Nov 29
0
named arguments discouraged in `[.data.frame` and `[<-.data.frame`
....data.frame`?
(because this question is of the kind 'why is R designed like this?', I though R-devel would be more appropriate than R-help)
#############################
Background:
Now and then students presents there fancy functions like this:
myfancyfun(d,12,0.3,0.2,500,1000,FALSE,TRUE,FALSE,TRUE,FALSE)
Incomprehensible. Thus, I encourage them to use spaces and name arguments, _at least_ when trying to communicate their code with others. Something like:
myfancyfun(data = d, n = 12, gamma = 0.3, prob = 0.2,...