bin_data: Function to bin data based on a vector of bin separators,...

View source: R/binning.R

bin_dataR Documentation

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


ronkeizer/vpc documentation built on May 11, 2023, 11:09 p.m.