makePhase: makePhase - function to make phases

View source: R/fastDist.R

makePhaseR Documentation

makePhase - function to make phases

Description

makePhase - function to make phases

Usage

makePhase(nObsPerPhase = c(10, 20, 10), phaseNames = NULL)

Arguments

nObsPerPhase

Numeric vector. The length is the number of phases and each entry is the number of observations per phase.

phaseNames

Numeric or character vector. The names of the phases, e.g., c("phase0", "phase1"). Phase names must each be unique, start with a letter, and contain only letters, numbers, underscores, or decimals. The defualt is NULL, in which case the P phases are labeled c("phase1", "phase2", ..., "phaseP")

Value

For makePhase, a list of phase names replicated by the number of observations per phase.

Examples


# makePhase example
makePhase()

ICTatRTI/PersonAlyticsPower documentation built on Dec. 13, 2024, 11:08 p.m.