Skip to content

Commit

Permalink
Fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn P. Serbin authored Feb 23, 2022
1 parent 9caad94 commit 1ee26aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/average.spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ average.spec <- function(file.dir=NULL,out.dir=NULL,spec.type="Reflectance",star
stop("******** ERROR: Bias threshold too strict, no remaining spectra to average. Please correct ********")
}
### Get spectra averages
spec.avg <- Hmisc::Apply(mat.data,ind,colMeans,simplify=TRUE)
spec.avg <- Hmisc::mApply(mat.data,ind,colMeans,simplify=TRUE)
### Reformat data for further processing
if (is.null(dim(spec.avg)[1])) {
spec.avg <- data.frame(Spectra=unique(good.spec$Spectra), t(as.vector(spec.avg)))
Expand Down Expand Up @@ -448,4 +448,4 @@ average.spec <- function(file.dir=NULL,out.dir=NULL,spec.type="Reflectance",star

####################################################################################################
### EOF. End of R script file.
####################################################################################################
####################################################################################################

0 comments on commit 1ee26aa

Please sign in to comment.