View source: R/standardize_subject_ids.R
check_subject_ids | R Documentation |
correct_subject_ids
function to correct them.Check whether the subject IDs comply with the expected format. When incorrect
IDs are found, the function sends a warning and the user can call the
correct_subject_ids
function to correct them.
check_subject_ids(
data,
target_columns,
prefix = NULL,
suffix = NULL,
range = NULL,
nchar = NULL
)
data |
The input |
target_columns |
A |
prefix |
A |
suffix |
A |
range |
A |
nchar |
An |
The input dataset with a warning if incorrect subject ids were found
dat <- check_subject_ids(
data = readRDS(
system.file("extdata", "test_df.RDS", package = "cleanepi")
),
target_columns = "study_id",
prefix = "PS",
suffix = "P2",
range = c(1, 100),
nchar = 7
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.