bin_make: Generate the bin of observation time

View source: R/bin_make.R

bin_makeR Documentation

Generate the bin of observation time

Description

Break the observation time into different bins, with the width of the bin as bin_len

Usage

bin_make(tp, bin_len)

Arguments

tp

A set of observation time

bin_len

The width of bin

Value

A list of different bins.

Examples

tp <- c(1:5, 51:55, 101:105, 501:505, 601:605)
bin_len <- 50
bin_make(tp, bin_len)


Alexhaoge/rCLIFII documentation built on Sept. 28, 2023, 11:23 p.m.