remove missing values from dataframe and reshape the dataframe with the non-missing ones
I have a dataframe that has missing values at each column, but at different rows. For simplicity, let’s see the following dataframe (real dataframe is much more complex): first_column <- c(1, 2, NA,NA) second_column <- c(NA, NA, 4,9) df <- data.frame(first_column, second_column) and we get: first_column second_column 1 1 NA 2 2 NA 3 NA… Read More remove missing values from dataframe and reshape the dataframe with the non-missing ones