Displaying 5 results from an estimated 5 matches for "_whether".
Did you mean:
whether
2018 Nov 30
2
Unexpected argument-matching when some are missing
...his sense:
> > plot(1:10, y=)
> > ...
> Browse[2]> missing(y)
Although I said what I meant by 'missing' vs 'not present', it wasn't exactly what missing() means. My bad.
missing() returns TRUE if an argument is not specified in the call _whether or not_ it has a default, hence the behaviour of missing(y) in debug(plot).
But we can easily find out whether a default has been assigned:
plot(1:10, y=, type=)
Browse[2]> y
NULL
Browse[2]> type
"p"
... which is consistent with silent omission...
2018 Nov 29
2
Unexpected argument-matching when some are missing
On Thu, Nov 29, 2018 at 1:10 PM S Ellison <S.Ellison at lgcgroup.com> wrote:
>
>
> > > plot(x=1:10, y=)
> > > plot(x=1:10, y=, 10:1)
> > >
> > > In both cases, 'y=' is ignored. In the first, the plot is for y=NULL (so not
> > 'missing' y)
> > > In the second case, 10:1 is positionally matched to y despite the
2018 Dec 03
1
Unexpected argument-matching when some are missing
...gt;> > > ...
>> > Browse[2]> missing(y)
>>
>> Although I said what I meant by 'missing' vs 'not present', it wasn't exactly what missing() means. My bad.
>> missing() returns TRUE if an argument is not specified in the call _whether or not_ it has a default, hence the behaviour of missing(y) in debug(plot).
>>
>> But we can easily find out whether a default has been assigned:
>> plot(1:10, y=, type=)
>> Browse[2]> y
>> NULL
>> Browse[2]> type
>> "...
2018 Nov 30
0
Unexpected argument-matching when some are missing
...But y _is_ missing in this sense:
> > plot(1:10, y=)
> > ...
> Browse[2]> missing(y)
Although I said what I meant by 'missing' vs 'not present', it wasn't exactly what missing() means. My bad.
missing() returns TRUE if an argument is not specified in the call _whether or not_ it has a default, hence the behaviour of missing(y) in debug(plot).
But we can easily find out whether a default has been assigned:
plot(1:10, y=, type=)
Browse[2]> y
NULL
Browse[2]> type
"p"
... which is consistent with silent omission of 'y=' and 'type='...
2018 Nov 30
0
Unexpected argument-matching when some are missing
...> plot(1:10, y=)
> > > ...
> > Browse[2]> missing(y)
>
> Although I said what I meant by 'missing' vs 'not present', it wasn't exactly what missing() means. My bad.
> missing() returns TRUE if an argument is not specified in the call _whether or not_ it has a default, hence the behaviour of missing(y) in debug(plot).
>
> But we can easily find out whether a default has been assigned:
> plot(1:10, y=, type=)
> Browse[2]> y
> NULL
> Browse[2]> type
> "p"
>
> ... which...