18 - Digging into Factors
Alex Tantos
In this video, I will show you how to change the levels of a factor and why and how to drop the levels that are redundant. I use two examples of synthetic data (synthetic means they are are made up data used as examples for the video): a) recorded genders of 9 people (with possible values "male" and "female") and b) natural language data tagged with their parts of speech. The tags are part of the Oxford English corpus parts-of-speech tagset developed by Oxford University Press for the Oxford English corpora. Check out the what each of the tags of the whole tagset stand for, here: https://www.sketchengine.eu/oxford-english-corpus-tagset/
R functions to learn:
levels() droplevels() as.numeric()
Other features include advanced subsetting code for excluding entries that belong to specific levels. ... https://www.youtube.com/watch?v=frCGNReyD88
31644520 Bytes