Skip to content

Commit

Permalink
add ... and remove na.rm requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
wincowgerDEV committed Aug 7, 2024
1 parent 1d03c6a commit 75f5a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/def_features.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ collapse_spec.OpenSpecy <- function(x, fun = median, column = "feature_id", ...)
# Calculate the collapsed spectra for each unique feature_id
ts <- transpose(x$spectra)
ts$id <- x$metadata[[column]]
x$spectra <- ts[, lapply(.SD, fun, na.rm = T), by = "id"] |>
x$spectra <- ts[, lapply(.SD, fun, ...), by = "id"] |>
transpose(make.names = "id")


Expand Down

0 comments on commit 75f5a3f

Please sign in to comment.