I have a dataframe where some of the values are NA. I would like to remove these columns.
My data.frame looks like this
v1 v2 1 1 NA 2
You can use transpose twice:
newdf <- t(na.omit(t(df)))