Learn R Programming

YEAB (version 1.0.6)

f_table: 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)

Value

A data frame

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

Examples

Run this code
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)

Run the code above in your browser using DataLab