I am new to R Programming. I wrote a sample program and that returns a value of a particular column in a matrix. When I print the value i get something like this
[1] APPLE
2 Levels : 1 2
How do I get only the value without the levels in the output.
Thanks in advance.
You can print a factor without displaying the levels by using the
max.levels
argument inprint()
.Normal printing:
Levels removed: