I am very new to R and trying to extract a specific element from a data frame and compare it with an integer.
I had a table saved in text file.

I used the following to read the table.
mydata = read.table("file.txt");
In my case I want to compare an element say, say the first element of USERPOR (which is 1.0) with an integer 1.0 (so the comparison should return true).
The code I wrote was
mydata[[2,7]]
[1] 1.000
Levels: 1.000 10.0000 2.000 3.000 4.00 5.00 6.000 7.000 8.000 9.000 USERPROR
However, when I compared them, I got 'FALSE'. Can anybody tell why is that so?
> mydata[[2,7]]==1.0
[1] FALSE