Learn R Programming

tdata (version 0.3.0)

minus.freqs: Get Interval between two frequencies

Description

Use this function to get the number of intervals between two frequencies.

Usage

minus.freqs(freq1, freq2)

Value

The number of intervals between the two frequencies (freq1 - freq2).

Arguments

freq1

The first frequency.

freq2

The second frequency.

Examples

Run this code
f1 <- f.yearly(2000)
f2 <- f.yearly(2010)
count <- minus.freqs(f1, f2) # this is -10
count <- minus.freqs(f2, f1) # this is 10

Run the code above in your browser using DataLab