# 46-any-all v=c(T,T,F,T) print(all(v)) # output: FALSE print(any(v)) # output: TRUE v=c() print(all(v)) # output: TRUE print(any(v)) # output: FALSE u=c(-1,3,5,0,4) print(u>0) # output: FALSE TRUE TRUE FALSE TRUE print(all(u>0)) # output: FALSE print(any(u>0)) # output: TRUE u=c(0.7,0.3,2,1) v=u>u^2; print(v) # output: TRUE TRUE FALSE FALSE print(all(v)) # output: FALSE print(any(v)) # output: TRUE