Q:

I have a factor columns in R. I am trying to delete it but I keep getting errors messages.  How do I delete a factor column in R? 

My data frame df has has a factor column.  The column is just filled with "yes" and "no" values.  I used the following formula:
* df$column <- NULL*
However I get the following messages;
Warning message:
In Ops.factor(df$Embarked, NULL) : ‘<’ not meaningful for factors
&
logical(0)
Can someone advise what formula to use instead of the one I used please? 

A:

library(dplyr)
df <- select(df, -column)

