I made data frame called x:
a b 1 2 3 NA 3 32 21 7 12 8 When I run
y <- x["a">2,] The object y returned is identical to x. If I run
y <- x["a" == 1,] y is an empty frame.
I made sure that the names of the x data frame have no white spaces (I named them myself with names() ) and also that a and are numeric.
PS: If I try
y <- x["a">2] y is also returned as identical to x.