toxRing {xRing} | R Documentation |
Converts a dataframe with X-ray microdensity profiles into an "xRing" object
toxRing(x, y = NULL, seriesName)
x |
a dataframe with X-ray microdensity profiles |
y |
a dataframe with the numerical values of the first and last year in columns. The individual series are specified as row names. |
seriesName |
the name of series from x and y to be used to produce the "xRing" object. |
an "xRing" object, an S3 class with the following elements:
profile.raw
a vector
with the input density profile
span
first and last year
name
a string
giving the series name
data(PaPiRaw)
data(PaPiSpan)
PaPi.AFO1001a <- toxRing(PaPiRaw, PaPiSpan, seriesName = "AFO1001a")
class(PaPi.AFO1001a)