Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
真的很简单,但我很难折叠一个布尔向量。AND(c(T,T,F))似乎对AND有用,但OR(c(T,T,F))不存在。
AND(c(T,T,F))
OR(c(T,T,F))
all()并且any()似乎在做这个把戏。
all()
any()