Sometimes when you’ve done some data manipulation or read a new file, it might happen that a numerical attribute, like an ID, is stored as a factor. Let’s have a look at the following example: Here I simply defined a vector of numbers (e.g. ids) and converted the values to factors.
|
|