To count TRUE values in a logical vector, you can use the following functions: z <- sample(c(TRUE, FALSE), 10000, rep = TRUE).
確定! 回上一頁