From b30243bc09333872adcefba056644e868238fb7b Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 30 Sep 2023 10:27:22 +0200 Subject: [PATCH] fix example --- R/p_map.R | 6 +++--- man/p_map.Rd | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/p_map.R b/R/p_map.R index 963ea5938..4f1e05c48 100644 --- a/R/p_map.R +++ b/R/p_map.R @@ -49,9 +49,9 @@ #' for (iteration in 1:250) { #' x <- rnorm(1000, 1, 1) #' result <- data.frame( -#' "Kernel" = p_map(x, method = "kernel"), -#' "KernSmooth" = p_map(x, method = "KernSmooth"), -#' "logspline" = p_map(x, method = "logspline") +#' "Kernel" = as.numeric(p_map(x, method = "kernel")), +#' "KernSmooth" = as.numeric(p_map(x, method = "KernSmooth")), +#' "logspline" = as.numeric(p_map(x, method = "logspline")) #' ) #' data <- rbind(data, result) #' } diff --git a/man/p_map.Rd b/man/p_map.Rd index ae500f7c4..ae8b0b49f 100644 --- a/man/p_map.Rd +++ b/man/p_map.Rd @@ -111,9 +111,9 @@ data <- data.frame() for (iteration in 1:250) { x <- rnorm(1000, 1, 1) result <- data.frame( - "Kernel" = p_map(x, method = "kernel"), - "KernSmooth" = p_map(x, method = "KernSmooth"), - "logspline" = p_map(x, method = "logspline") + "Kernel" = as.numeric(p_map(x, method = "kernel")), + "KernSmooth" = as.numeric(p_map(x, method = "KernSmooth")), + "logspline" = as.numeric(p_map(x, method = "logspline")) ) data <- rbind(data, result) }