In my dataset I have this factor with 3 levels
> summary(dataset$Frutta.verdura) No\\raramente Non regolarmente Regolarmente 1 18 50
The numbers below represent the frequency of those particular observations.
I want to draw the boxplot which compares those frequencies with a numeric variable(Energia.giornaliera), but without the level "No\raramente" because it occurs only one time which means it doesn't bring a lot of meaning to the statistics.
How do I remove the level from that dataframe's factor?
I've only found functions that remove Unused factor levels such as drop.levels(), but I'm having a hard
solving this one.
Thank you in advance!
my dataset is something like this
index, Frutta. verdura, Energia.giornaliera
, Regolarmente, 1
, Non Regolarmente, 7
, Regolarmente, 4
, Regolarmente, 9
, Non Regolarmente, 10
Index column was generated automatically btw
I want this graph without the level "No\raramente"