(v1.4.0.9052) replaced all sapply's with type-safe vapply's

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-12-28 22:24:33 +01:00
1 parent ccf13dd6c0
commit 526f8afb08
37 files changed
+155 -117

No files matched your search

+1 -1
View File
@@ -66,5 +66,5 @@ skewness.matrix <- function(x, na.rm = FALSE) {
#' @export
skewness.data.frame <- function(x, na.rm = FALSE) {
meet_criteria(na.rm, allow_class = "logical", has_length = 1)
sapply(x, skewness.default, na.rm = na.rm)
vapply(FUN.VALUE = double(1), x, skewness.default, na.rm = na.rm)
}