as_multi_xy {powdR} | R Documentation |
as_multi_xy
takes a list or data frame of XRPD data and ensures
that the data meet 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.
as_multi_xy(x, ...)
x |
a list or data frame of XRPD data |
... |
other arguments |
a multiXY
object.
#EXAMPLE 1
#load soils data
data(soils)
#extract first two samples from the list
soils <- soils[c(1:2)]
#convert to multiXY
soils <- as_multi_xy(soils)
#EXAMPLE 2
#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)