[Rd] 'summary' with logicals (PR#2629)

gb at stat.umu.se gb at stat.umu.se
Wed Mar 12 23:32:16 MET 2003


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.

Göran
---
 Göran Broström                    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 at stat.umu.se



More information about the R-devel mailing list