Skip to contents

The function calculates a frequency distribution of data using the functions: `cut()` and `table()` from the R base.

Usage

fn_freq(df, breaks, right=FALSE)

Arguments

df

A vector of data values.

breaks

A vector with class intervals.

right

Logical, indicating if the intervals should be closed on the right (and open on the left) or vice versa

Value

A table with frequencies by class interval is returned.

Details

Inside the function: <<<<<<< HEAD The non-cumulative absolute frequency is calculated for each user defined class interval within the `breaks` object.

The `breaks` object must be defined outside the function by the user. For example a sequence of breakpoints of equal distance could be used. ======= The non-cumulative absolute frequency is calculated for each user defined class interval within the `breaks` object.

The `breaks` object must be defined outside the function by the user. For example a sequence of breakpoints of equal distance could be used. >>>>>>> 797145bb726cc480b9f31a4fec6f464f87688996

See also

: `cut()` and `table()` functions from the R base package.

Examples

   if (FALSE) {
    freq <- fn_freq(df, breaks, right=FALSE)
    }