Venga now - the commands I always forget
Tuesday, 10 April 2012
how to use empty 'which()' results in R?
As the function returns a vector, for the cases in which the function does not find any cases matching the criteria it will return a vector length of zero
> length(which(borders$end == bands[b,'start']))
[1] 0
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment