ordered_insert: insert a cluster ID prior to "index"; mylist keeps a list of...

Description Usage Arguments Value Examples

View source: R/split_merge.R

Description

This function is called when adding a new cluster with more than one subjects

Usage

1
ordered_insert(index, mylist, t)

Arguments

index

an integer of cluster ID to be inserted

mylist

a vector of integer cluster IDs

t

the effective number of clusters

Value

an vector of cluster IDs with an inserted ID index.

Examples

1
2
ordered_insert(4,c(1:3,5:10),7)
ordered_insert(4,c(1:10),7)

oslerinhealth/rewind documentation built on May 26, 2021, 6:56 a.m.