Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bin_data

Function to bin data based on a vector of bin separators, e.g. for use in VPC


Description

Function to bin data based on a vector of bin separators, e.g. for use in VPC

Usage

bin_data(x, bins = c(0, 3, 5, 7), idv = "time", labeled = F)

Arguments

x

data

bins

numeric vector specifying bin separators

idv

variable in the data specifies the independent variable (e.g. "time")

labeled

whether a labeled factor instead of integers should be returned


vpc

Create Visual Predictive Checks

v1.2.2
MIT + file LICENSE
Authors
Ron Keizer <ronkeizer@gmail.com>
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.