I am struggling to understand the code behind the plot_na_correlation function. Mainly these parts:
col_names[row_number()] col_names[order(colSums(is.na(missing_corr_up)))] col_names[order(-colSums(is.na(missing_corr_up)))]
I am struggling to understand what placing functions inside square brackets next to a function that accesses columnn names does and why we want to do it and why this is the best way to do it.
Thankyou for your time and help.