get_subject_indices: Get a table of start/end indices from subject label vector

Description Usage Arguments Value

View source: R/get_subject_indices.R

Description

Given input of an ordered subject label vector, returns the indices into this vector corresponding to the beginning and end of each subject.

Usage

1

Arguments

x

A vector of subject labels, sorted by said labels.

Value

A matrix with two columns (start & end) and as many rows as there are unique labels in the input


mike-lawrence/ezStan documentation built on Dec. 29, 2021, 1:30 a.m.