Learn R Programming

SpecHelpers (version 0.2.7)

jSeq: Utility for Creating NMR Multiplets

Description

This function creates sequences, centered on zero, which correspond to odd or even NMR multiplets. Not intended for direct use. Called by plotNMRspec.

Usage

jSeq(length.out)

Arguments

length.out

An integer giving the number of peaks in the sequence.

Value

A vector describing the spacing of the parts of an NMR multiplet in terms of multiples of the coupling constant, J.

See Also

plotNMRspec which calls this function.

Examples

Run this code
# NOT RUN {
tmp <- jSeq(5) # a multiplet with an odd number of peaks
tmp
tmp <- jSeq(6) # an even number
tmp

# }

Run the code above in your browser using DataLab