powered by
Apply all or any logical summaries across random draws.
all
any
draws_all(x, na_rm = FALSE)# S3 method for rvec_chr draws_all(x, na_rm = FALSE)# S3 method for rvec draws_all(x, na_rm = FALSE)draws_any(x, na_rm = FALSE)# S3 method for rvec_chr draws_any(x, na_rm = FALSE)# S3 method for rvec draws_any(x, na_rm = FALSE)
# S3 method for rvec_chr draws_all(x, na_rm = FALSE)
# S3 method for rvec draws_all(x, na_rm = FALSE)
draws_any(x, na_rm = FALSE)
# S3 method for rvec_chr draws_any(x, na_rm = FALSE)
# S3 method for rvec draws_any(x, na_rm = FALSE)
A vector.
An object of class rvec.
Whether to remove NAs before calculating summaries. Default is FALSE.
FALSE
Apply pre-specified functions across draws:
draws_min()
draws_max()
draws_median()
draws_mean()
draws_mode()
draws_sd()
draws_var()
draws_cv()
draws_ci()
draws_quantile()
Apply arbitrary function across draws:
draws_fun()
m <- rbind(a = c(TRUE, FALSE, TRUE), b = c(TRUE, TRUE, TRUE), c = c(FALSE, FALSE, FALSE)) x <- rvec(m) x draws_all(x) draws_any(x)
Run the code above in your browser using DataLab