Skip to content

Commit 1ee26aa

Browse files
author
Shawn P. Serbin
authored
Fixing typo
1 parent 9caad94 commit 1ee26aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/average.spec.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ average.spec <- function(file.dir=NULL,out.dir=NULL,spec.type="Reflectance",star
255255
stop("******** ERROR: Bias threshold too strict, no remaining spectra to average. Please correct ********")
256256
}
257257
### Get spectra averages
258-
spec.avg <- Hmisc::Apply(mat.data,ind,colMeans,simplify=TRUE)
258+
spec.avg <- Hmisc::mApply(mat.data,ind,colMeans,simplify=TRUE)
259259
### Reformat data for further processing
260260
if (is.null(dim(spec.avg)[1])) {
261261
spec.avg <- data.frame(Spectra=unique(good.spec$Spectra), t(as.vector(spec.avg)))
@@ -448,4 +448,4 @@ average.spec <- function(file.dir=NULL,out.dir=NULL,spec.type="Reflectance",star
448448

449449
####################################################################################################
450450
### EOF. End of R script file.
451-
####################################################################################################
451+
####################################################################################################

0 commit comments

Comments
 (0)