% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app-utils.R
\name{.mz_window}
\alias{.mz_window}
\title{Compute an m/z window from a target m/z and a ppm tolerance}
\usage{
.mz_window(mz, ppm)
}
\arguments{
\item{mz}{A \code{numeric} scalar — the target m/z.}

\item{ppm}{A \code{numeric} scalar — the symmetric tolerance in parts-per-million.}
}
\value{
A length-2 \code{numeric} vector \code{c(mzmin, mzmax)}.
}
\description{
Internal helper used by the Shiny app to translate a user-supplied
centre mass and ppm tolerance into the \code{mzmin}/\code{mzmax} pair expected by
\code{\link[=lp_chromatogram]{lp_chromatogram()}}.
}
\keyword{internal}
