search for: wheareas

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

2011 Mar 11
2
'autocompletion' of named elements of a list
I had an obscure bug that boiled down to this ``feature'' in R, Read 3921 items > A = list(aa = 1) > A $aa [1] 1 > if (A$a) print("a is there") [1] "a is there" The test appear to check is A$a is TRUE, but what happen is that it auto-complete (silently), and expand to 'A$aa'. The problem was caused by the fact that I had also a element named