Assign a new individual identifier to all rows in a dataset
Source:R/manage_metadata.R
set_individual.Rd
This function replaces any existing individual identifiers with a new specified identifier across all rows in the dataset. The data is first ungrouped to ensure consistent application of the new identifier.
Examples
data <- data.frame(time = 1:5, value = rnorm(5))
result <- set_individual(data, "subject_A")