From b5e67e59c3f23db968d00dfebf66bf31fa5475f5 Mon Sep 17 00:00:00 2001 From: Ben Letham Date: Thu, 4 Mar 2021 20:59:51 -0800 Subject: [PATCH] Clean up R check warnings --- R/R/utilities.R | 4 ++-- R/man/regressor_coefficients.Rd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/R/utilities.R b/R/R/utilities.R index 1c66d3a..85cd322 100644 --- a/R/R/utilities.R +++ b/R/R/utilities.R @@ -8,7 +8,7 @@ #' on \code{y} of a unit increase in the regressor. For multiplicative regressors, #' the incremental impact is equal to \code{trend(t)} multiplied by the coefficient. #' -#' \textbf{Coefficients are measured on the original scale of the training data.} +#' Coefficients are measured on the original scale of the training data. #' #' @param m Prophet model object, after fitting. #' @@ -50,7 +50,7 @@ regressor_coefficients <- function(m){ coefs <- betas * y_scale_indicator / regr_stds percentiles = c((1 - m$interval.width) / 2, 1 - (1 - m$interval.width) / 2) - bounds <- apply(betas, 2, quantile, probs = percentiles) + bounds <- apply(betas, 2, stats::quantile, probs = percentiles) df <- data.frame( regressor = regr_names, diff --git a/R/man/regressor_coefficients.Rd b/R/man/regressor_coefficients.Rd index 6428898..6065c67 100644 --- a/R/man/regressor_coefficients.Rd +++ b/R/man/regressor_coefficients.Rd @@ -16,7 +16,7 @@ regressor_coefficients(m) Dataframe with one row per regressor. } \description{ -\textbf{Coefficients are measured on the original scale of the training data.} +Coefficients are measured on the original scale of the training data. } \details{ Output dataframe columns: