as_multi_xy.list {powdR}R Documentation

Create a multiXY object from a list of XRPD data

Description

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.

Usage

## S3 method for class 'list'
as_multi_xy(x, ...)

Arguments

x

a list of XRPD data frames (column 1 = 2theta, column 2 = counts)

...

other arguments

Value

a multiXY object.

Examples

#' #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)

[Package powdR version 1.3.0 Index]