Learn R Programming

TauP.R (version 1.5)

StripRepetitions: Remove Repetitions from Phase

Description

Removes numbers indicating multiples from phase name and lists them separately.

Usage

StripRepetitions(phase)

Arguments

phase

Wave arrival phase (e.g. 'P', 'SKS2')

Value

List including remaining (unrepeated) phase and number of repetitions.

Examples

Run this code
# NOT RUN {
StripRepetitions('PKP5')
# }

Run the code above in your browser using DataLab