merge.powdRlib: Merge two powdRlib objects

Description Usage Arguments Value Examples

View source: R/merge.R

Description

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

Usage

1
2
## S3 method for class 'powdRlib'
merge(x, y, ...)

Arguments

x

a powdRlib object.

y

a powdRlib object

...

other arguments

Value

a powdRlib object.

Examples

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

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