Description Usage Arguments Value Examples
as_multi_xy.data.frame
takes a data frame of XRPD data from multiple
samples and ensures that it meets various requirements to create a multiXY object.
Once a multiXY
object has been created, it can easily be plotted using
the associated plot.multiXY
method.
1 2 | ## S3 method for class 'data.frame'
as_multi_xy(x, ...)
|
x |
a data frame of XRPD data, with the first column as the 2theta axis and subsequent columns of count intensities. |
... |
other arguments |
a multiXY
object.
1 2 3 4 5 6 7 8 9 | #load the soils data
data(soils)
#Convert to data frame
soils_df <- multi_xy_to_df(soils,
tth = TRUE)
#Convert back to multiXY object
soils2 <- as_multi_xy(soils_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.