f_table {YEAB}R Documentation

Frequency table for binned data

Description

Creates a frequency table from a vector of bins from, for example, get_bins(). It includes zero-frequency bins. If the bins came from the responding times, this creates a data.frame of response rate.

Usage

f_table(x, min_x, max_x, bin_res)

Arguments

x

numeric, a vector of binned data

min_x

numeric, the minimal value of x

max_x

numeric, the maximal value of x

bin_res

numeric, the bin resolution

Value

A data frame

Examples

data("r_times")
bin_res <- 2
min_x <- 0
max_x <- 180
x <- get_bins(r_times, min_x, max_x, bin_res)
xt <- f_table(x, min_x, max_x, bin_res)
plot(xt$bins, xt$prop)

[Package YEAB version 1.0.6 Index]