From gb at stat.umu.se  Wed Mar 12 23:32:16 2003
From: gb at stat.umu.se (gb@stat.umu.se)
Date: Wed Mar 12 23:32:33 2003
Subject: [Rd] 'summary' with logicals (PR#2629)
Message-ID: <200303122232.h2CMWGn9021070@pubhealth.ku.dk>

Consider

> oj <- data.frame(x = c(TRUE, FALSE, NA))
> oj
      x
1  TRUE
2 FALSE
3    NA
> summary(oj)
     x          
 Mode :logical  
 FALSE:1        
 TRUE :1        

But

> oj$x <- factor(oj$x)
> summary(oj)
     x    
 FALSE:1  
 TRUE :1  
 NA's :1  

My point is that NA's should be reported for logicals like they are for 
other data types.

Gran
---
 Gran Brostrm                    tel: +46 90 786 5223
 Department of Statistics          fax: +46 90 786 6614
 Ume University                   http://www.stat.umu.se/egna/gb/
 SE-90187 Ume, Sweden             e-mail: gb@stat.umu.se


[Rd] 'summary' with logicals (PR#2629)
gb@stat.umu.se