Extracts the intercepts, covariance matrix, etc. of a selection of
isotopes from a larger dataset
Usage
getmasses(x, ...)
## Default S3 method:
getmasses(x, ...)
## S3 method for class 'timeresolved'
getmasses(x, mass, invert = FALSE, ...)
## S3 method for class 'logratios'
getmasses(x, num, den, invert = FALSE, ...)
Arguments
x
an object of class logratios,
timeresolved, PHdata or
redux.
...
other arguments
mass
a vector of strings denoting the masses of interest
invert
boolean parameter indicating whether the selection
should be inverted (default = FALSE)
num
vector of strings indicating the numerator isotopes
den
vector of string indicating the denominator isotopes
Value
an object of the same class as x
Examples
kfile <- system.file("K-glass.csv",package="ArArRedux")
masses <- c("Ar37","Ar38","Ar39","Ar40","Ar36")
mk <- loaddata(kfile,masses)
lk <- fitlogratios(blankcorr(mk,"EXB#","K:"),"Ar40")
k <- getmasses(lk,"Ar39","Ar40") # subset on the relevant isotopes
plotcorr(k)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(ArArRedux)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/ArArRedux/getmasses.Rd_%03d_medium.png", width=480, height=480)
> ### Name: getmasses
> ### Title: Select a subset of isotopes from a dataset
> ### Aliases: getmasses getmasses.default getmasses.logratios
> ### getmasses.timeresolved
>
> ### ** Examples
>
> kfile <- system.file("K-glass.csv",package="ArArRedux")
> masses <- c("Ar37","Ar38","Ar39","Ar40","Ar36")
> mk <- loaddata(kfile,masses)
> lk <- fitlogratios(blankcorr(mk,"EXB#","K:"),"Ar40")
> k <- getmasses(lk,"Ar39","Ar40") # subset on the relevant isotopes
> plotcorr(k)
>
>
>
>
>
> dev.off()
null device
1
>