as_multi_xy {powdR}R Documentation

Create a multiXY object

Description

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.

Usage

as_multi_xy(x, ...)

Arguments

x

a list or data frame of XRPD data

...

other arguments

Value

a multiXY object.

Examples


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

[Package powdR version 1.3.0 Index]