Learn R Programming

powdR (version 1.3.0)

merge.powdRlib: Merge two powdRlib objects

Description

merge.powdRlib allows two powdRlib objects (which must have) the same 2theta scale) to be merged into a single powdRlib object.

Usage

# S3 method for powdRlib
merge(x, y, ...)

Arguments

x

a powdRlib object.

y

a powdRlib object

...

other arguments

Value

a powdRlib object.

Examples

Run this code
# NOT RUN {
#Load the minerals library
data(minerals)

#Load the rockjock library
data(rockjock)

#interpolate minerals library onto same 2theta as rockjock
minerals_i <- interpolate(minerals, new_tth = rockjock$tth)

#merge the libraries
merged_lib <- merge(rockjock, minerals_i)
# }

Run the code above in your browser using DataLab