Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code duplication checking parameters #6

Open
hechth opened this issue Feb 16, 2023 · 0 comments
Open

code duplication checking parameters #6

hechth opened this issue Feb 16, 2023 · 0 comments

Comments

@hechth
Copy link
Member

hechth commented Feb 16, 2023

RAMClustR/R/findmass.R

Lines 27 to 42 in 36fce5b

rttol = 2,
zmax = 6,
m.check = TRUE)
{
if(is.null(ramclustObj)) {
stop("must supply ramclustObj as input. i.e. ramclustObj = RC", '\n')
}
if (is.null(mz)) {
stop("must set 'mz'", "\n")
}
if (is.null(mztol)) {
stop("must set 'mztol'", "\n")
}
tar <- which(abs(ramclustObj$fmz - mz) <= mztol)

Duplicated with

if (is.null(mz)) {
stop("must set 'mz'", "\n")
}
if (is.null(mztol)) {
stop("must set 'mztol'", "\n")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants