-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcorrect_backgrounds.Rd
44 lines (39 loc) · 1.3 KB
/
correct_backgrounds.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/correct_backgrounds.R
\name{correct_backgrounds}
\alias{correct_backgrounds}
\title{Background corrections}
\usage{
correct_backgrounds(
.data,
factor,
...,
i47 = v47.mV,
i54 = v54.mV,
quiet = default(quiet)
)
}
\arguments{
\item{.data}{The dataframe with raw iso files.}
\item{factor}{Factor by which to multiply the half-cup before subtraction.}
\item{...}{These dots are for future extensions and must be empty.}
\item{i47}{Column with mass 47 intensities to correct. Defaults to \code{v47.mV}.}
\item{i54}{Column with mass 47.5 intensities to use for correction. Defaults to \code{v54.mV}.}
\item{quiet}{If \code{TRUE}, print info messages. If \code{NULL} (default) listens to \code{options(clumpedr.quiet)}}
}
\value{
Same as \code{.data} but with altered i47 column.
}
\description{
This function applies a very simple background correction based on the cup
54 intensity and an input scaling factor.
}
\examples{
# generate some fake data
dat <- tibble::tibble(v47.mV = seq(0, 1, length.out = 10), v54.mV = seq(.1, 0, length.out = 10))
# correct the mass 47 using the half-cup
dat <- dat |> correct_backgrounds(factor = 1)
# or use the example data included
isoreader::iso_get_raw_data(standards) |>
correct_backgrounds(1.1)
}