I am trying to do 'summarise_all' for all columns using median and want to ignore null data using na.rm = T.
For example,
df_sector <- df %>% 
    group_by(Sector) %>% 
    summarise_all(mean, na.rm = T)
is working.
However,
df_sector <- df %>% 
    group_by(Sector) %>% 
    summarise_all(median, na.rm = T)
is not working.
Is there any way to summarise all columns using median and na.rm?
 
    