multi_xy_to_df {powdR}R Documentation

Convert a multiXY object to a data frame.

Description

multi_xy_to_df converts multiXY objects to a column-wise data frame.

Usage

multi_xy_to_df(x, tth, ...)

Arguments

x

a multiXY object.

tth

a logical value denoting whether the 2theta scale is appended as the first column. Default = TRUE.

...

other arguments

Value

A data.frame.

Examples

#Load the minerals library
data(soils)

soils_df1 <- multi_xy_to_df(soils, tth = TRUE)
soils_df2 <- multi_xy_to_df(soils, tth = FALSE)

[Package powdR version 1.3.0 Index]