cran / GCalignR

:exclamation: This is a read-only mirror of the CRAN R package repository. GCalignR — Simple Peak Alignment for Gas-Chromatography Data. Homepage: https://github.com/mottensmann/GCalignR Report bugs for this package: https://github.com/mottensmann/GCalignR/issues
GNU General Public License v2.0
0 stars 0 forks source link

Error in code: choose_optimal_reference #1

Open hebertodelrio opened 2 years ago

hebertodelrio commented 2 years ago

In the file choose_optimal_reference.R on the line 47 inside the function choose_optimal_reference it reads:

index <- which(min(x[["score"]]/x[["n_peaks"]]) == min(x[["score"]]/x[["n_peaks"]]))

but I believe it should read:

index <- which(x[["score"]]/x[["n_peaks"]] == min(x[["score"]]/x[["n_peaks"]]))

otherwise index will always contain 1

gaborcsardi commented 2 years ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!