powered by
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.
f_table(x, min_x, max_x, bin_res)
A data frame
numeric, a vector of binned data
numeric, the minimal value of x
numeric, the maximal value of x
numeric, the bin resolution
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