This commit is contained in:
Tanushree Tunstall 2022-08-01 13:41:43 +01:00
parent 79c261963b
commit e750ee59aa
2 changed files with 7 additions and 3 deletions

View file

@ -103,7 +103,7 @@ cols_to_extract = cols_to_consider[cols_to_consider%in%c(common_cols
# Ensemble affinity
#####################
# extract outcome cols and map numeric values to the categories
# Destabilising == 1, and stabilising == 0
# Destabilising == 0, and stabilising == 1 so rescaling can let -1 be destabilising
df3_plot = df3[, cols_to_extract]
df3_plot[, outcome_cols_aff] <- sapply(df3_plot[, outcome_cols_aff]