as_multi_xy.data.frame {powdR} | R Documentation |
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.
## 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.
#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)