Question: Consider the factor vector explevels

Consider the factor vector explevels <- gl(3, 2), and now change the third and fourth elements to 1 with explevels[3:4]<-1. Now, 2 is an extra factor level which is not present as a factor for any of its elements. Drop it! Use droplevels.

Step by Step Solution

3.52 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

First create the factor vect... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related A Course In Statistics With R Questions!