Learn R Programming

MoBPS (version 1.13.1)

renaming.cohort: Rename a cohort

Description

Function to rename a cohort

Usage

renaming.cohort(population, old.name, new.name, verbose = TRUE)

Value

population list

Arguments

population

Population list

old.name

Quick-insert for database (vector of names of cohorts to export)

new.name

Groups of individuals to remove from the database (same IDs!)

verbose

Set to FALSE to not display any prints

Examples

Run this code
data(ex_pop)
population <- renaming.cohort(ex_pop, old.name="Cohort_4", new.name = "NewName")

Run the code above in your browser using DataLab