as_multi_xy.list | R Documentation |
as_multi_xy.list
takes a list of XRPD data and ensures that they meet
various requirements to create a multiXY object. These requirements
include that each item in the list contains 2 columns of numeric data in a
data frame. as_multi_xy.list
also checks that all names are unique.
Once a multiXY
object has been created, it can easily be plotted using
the associated plot.multiXY
method.
## S3 method for class 'list' as_multi_xy(x, ...)
x |
a list of XRPD data frames (column 1 = 2theta, column 2 = counts) |
... |
other arguments |
a multiXY
object.
#' #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)