From 8a49f8078f269c362a4e57daa410d3224cc15bb8 Mon Sep 17 00:00:00 2001 From: nperez Date: Mon, 18 Feb 2019 09:30:26 +0100 Subject: [PATCH] spelling mistakes correction --- R/AnoMultiMetric.R | 2 +- R/MultivarRMSE.R | 2 +- man/AnoMultiMetric.Rd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/AnoMultiMetric.R b/R/AnoMultiMetric.R index 98eb93ba..1e52cd58 100644 --- a/R/AnoMultiMetric.R +++ b/R/AnoMultiMetric.R @@ -5,7 +5,7 @@ #' #'@param data an s2dverification object (list) giving as output of \code{Load} function from S2dverification package. #'@param metric a character string giving the metric for computing the maximum skill. This must be one of the strings 'correlation', 'rms' or 'rmsss. -#'@param multimodel a logical value indicating wether a Multi-Model Mean should be computed. +#'@param multimodel a logical value indicating whether a Multi-Model Mean should be computed. #'@param names a character vector indicating the names of the models to be compared. #' #'@return A list of 3: diff --git a/R/MultivarRMSE.R b/R/MultivarRMSE.R index d6b1cbfa..f1b27ca2 100644 --- a/R/MultivarRMSE.R +++ b/R/MultivarRMSE.R @@ -65,7 +65,7 @@ MultivarRMSE <- function(data, weight=NULL) { if (is.null(weight)) { weight <- c(rep(1, nvar)) } else if (length(weight) != nvar) { - stop("Parameter 'weigth' must have a length equal to the number of variables.") + stop("Parameter 'weight' must have a length equal to the number of variables.") } mvrmse <- 0 diff --git a/man/AnoMultiMetric.Rd b/man/AnoMultiMetric.Rd index 0071a721..77a1f6ac 100644 --- a/man/AnoMultiMetric.Rd +++ b/man/AnoMultiMetric.Rd @@ -12,7 +12,7 @@ AnoMultiMetric(data, metric = "correlation", multimodel = TRUE, \item{metric}{a character string giving the metric for computing the maximum skill. This must be one of the strings 'correlation', 'rms' or 'rmsss.} -\item{multimodel}{a logical value indicating wether a Multi-Model Mean should be computed.} +\item{multimodel}{a logical value indicating whether a Multi-Model Mean should be computed.} \item{names}{a character vector indicating the names of the models to be compared.} } -- GitLab