Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

splitMultiblockDX

Split a Multiblock JCAMP-DX File into Individual Files


Description

Process a multiblock JCAMP-DX file into separate files, one for each data set.

Usage

splitMultiblockDX(file = NULL)

Arguments

file

Length one character giving the name of the multiblock file.

Value

A list is returned invisibly that has one DX data set per list element. Individual files are written into the current directory, so you probably want to create a dedicated folder for this task. File names are extracted from the ##TITLE= sample_name field and will be sample_name (more precisely, the name will be whatever follows ##TITLE= on the line). If sample names are duplicated the output files will be overwritten as the file is processed (with a warning). In this case you should open the multiblock file in a plain text editor and search for ##TITLE=, then edit the names to be unique before running this function. Also, you should ensure that sample_name will result in a valid file name on your operating system.

Warning

Individual data sets are written into the current directory, so you probably want to create a dedicated folder for this task.

Author(s)

Bryan A. Hanson, DePauw University.


readJDX

Import Data in the JCAMP-DX Format

v0.5.41
GPL (>= 3)
Authors
Bryan A. Hanson [aut, cre] (<https://orcid.org/0000-0003-3536-8246>)
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.