generate_subject_ids: Generate subject IDs

View source: R/utils.R

generate_subject_idsR Documentation

Generate subject IDs

Description

Provides sequential numbered subject IDs for a specified number of subjects.

Usage

generate_subject_ids(n_subjects, prefix = "S")

Arguments

n_subjects

The number of subjects.

prefix

The prefix of the IDs. "S" by default.

Value

A character vector of length n_subjects.

Examples

generate_subject_ids(100)
generate_subject_ids(20, "subj-")


taylordunn/gasr documentation built on April 5, 2022, 1:37 a.m.