Re: [R] question about ?list

2005-10-17 Thread Prof Brian Ripley
The help page means exactly what it says, but the English is too subtle and I have reworded it. I have no idea why you are interested in pairlists (they are hardly used at user-visible level these days). The point is that pairlist() is NULL and so strictly not a pairlist at all (try typeof()

[R] question about ?list

2005-10-14 Thread ronggui
the help page says: 'is.list' returns 'TRUE' iff its argument is a 'list' _or_ a 'pairlist' of 'length' 0, whereas 'is.pairlist' only returns 'TRUE' in the latter case. does the latter case mean a 'pairlist' of 'length' 0? but is.pairlist(pairlist()) [1] TRUE length(pairlist())