Skip to content

Commit 42e2acb

Browse files
committed
minor
1 parent f2d6fa9 commit 42e2acb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/biasCorrection.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
#'
168168
#' The precipitation subroutines are switched-on when the variable name of the grid
169169
#' (i.e., the value returned by \code{gridData$Variable$varName}) is one of the following:
170-
#' \code{"pr"}, \code{"tp"} (this is the standard name defined in the vocabulary (\code{\link[loadeR.UDG]{C4R.vocabulary}}), \code{"precipitation"} or \code{"precip"}.
170+
#' \code{"pr"}, \code{"tp"} (this is the standard name defined in the vocabulary (\code{\link[cliamte4R.UDG]{C4R.vocabulary}}), \code{"precipitation"} or \code{"precip"}.
171171
#' Thus, caution must be taken to ensure that the correct bias correction is being undertaken when dealing with
172172
#' non-standard variables.
173173
#'
@@ -542,7 +542,7 @@ biasCorrectionXD <- function(y, x, newdata,
542542
max.ncores = max.ncores,
543543
ncores = ncores)
544544
if (!station) {
545-
if(class(mat) == "numeric") mat <- as.matrix(mat)
545+
if(is.numeric(mat)) mat <- as.matrix(mat)
546546
mat <- mat2Dto3Darray(mat, xy$x, xy$y)
547547
}
548548
mat

0 commit comments

Comments
 (0)