[R] is.finite() of a list
    stephen wisdom 
    swisdom at operamail.com
       
    Sun Feb  9 02:30:04 CET 2003
    
    
  
> ?is.finite
     `is.finite' and `is.infinite' return a vector of the same length
     as `x', indicating which elements are finite or not.
is.finite() of a list seems to return a vector of the length of the list, but with value FALSE if any list element isn't finite.  Is this intended?
> l4 <- list(NA,1,2,3); l4; length(l4); is.finite(l4)
[[1]]
[1] NA
[[2]]
[1] 1
[[3]]
[1] 2
[[4]]
[1] 3
[1] 4
[1] FALSE FALSE FALSE FALSE
> version
         _              
platform i386-pc-mingw32
arch     i386           
os       mingw32        
system   i386, mingw32  
status                  
major    1              
minor    6.2            
year     2003           
month    01             
day      10             
language R              
> system('winver') 
[Windows XP Professional]
Thanks,
Steve Wisdom
Westport CT USA 
-- 
_______________________________________________
http://www.operamail.com
Now with OperaMail Premium for only US$29.99/yr
    
    
More information about the R-help
mailing list