as_multi_xy.data.frame: 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.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.

Usage

1
2
## S3 method for class 'data.frame'
as_multi_xy(x, ...)

Arguments

x

a data frame of XRPD data, with the first column as the 2theta axis and subsequent columns of count intensities.

...

other arguments

Value

a multiXY object.

Examples

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

powdR documentation built on Aug. 13, 2021, 5:08 p.m.