rename_dl | R Documentation |
Rename features in a data list
rename_dl(dl, name_mapping)
dl |
A nested list of input data from |
name_mapping |
A named vector where the values are the features to be renamed and the names are the new names for those features. |
A data list ("list"-class object) with adjusted feature names.
library(metasnf)
dl <- data_list(
list(pubertal, "pubertal_status", "demographics", "continuous"),
list(anxiety, "anxiety", "behaviour", "ordinal"),
list(depress, "depressed", "behaviour", "ordinal"),
uid = "unique_id"
)
summary(dl, "feature")
name_changes <- c(
"anxiety_score" = "cbcl_anxiety_r",
"depression_score" = "cbcl_depress_r"
)
dl <- rename_dl(dl, name_changes)
summary(dl, "feature")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.