Skip to content

question about ?list

2 messages · ronggui, Brian Ripley

#
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
[1] TRUE
[1] 0

what the help page exactly means?

	



 				


2005-10-14

------
Deparment of Sociology
Fudan University

My new mail addres is ronggui.huang at gmail.com
Blog:http://sociology.yculblog.com
2 days later
#
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() on it).  However, 
is.pairlist(NULL) is true for historical reasons.
On Fri, 14 Oct 2005, ronggui wrote: