| extract_xy {powdR} | R Documentation | 
Import and extract XY data from proprietary files
Description
extract_xy is a wrapper for read_xyData of the rxylib package,
which extracts the xy data from various proprietary formats of X-ray powder
diffraction data using the xylib C++ library. For more information see
?rxylib and ?rxylib::read_xyData.
Usage
extract_xy(files)
Arguments
| files | path of the file(s) to be imported. | 
Value
If only one path is supplied then an XY data frame with 2 columns is returned, the first being the 2theta axis and the second being the count intensities. If more than one path is supplied then a multiXY list is returned, with each item in the list being an XY data frame as already described.
Examples
#load example RAW file
file <- system.file("extdata/D5000/RAW/D5000_1.RAW", package = "powdR")
raw1 <- extract_xy(file)
#Load multiple RAW files
files <- dir(system.file("extdata/D5000/RAW", package = "powdR"),
             full.names = TRUE)
raw_list <- extract_xy(files)
class(raw_list)
## Not run: 
plot(raw_list, wavelength = "Cu")
plot(raw_list, wavelength = "Cu", interactive = TRUE)
## End(Not run)
[Package powdR version 1.3.0 Index]