as_multi_xy.list: Create a multiXY object from a list of XRPD data

Description Usage Arguments Value Examples

View source: R/as_multi_xy.R

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

1
2
## 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

1
2
3
4
5
6
7
8
#' #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)

benmbutler/powdR documentation built on Nov. 29, 2021, 1:05 p.m.