I have A
and B
as follows:
//edit// I was sleepy and confused. These are NOT data frames.
> length(A)
[1] 490
> length(B)
[1] 17730
> str(A)
num [1:490] 0.0113 -0.0106 0.2308 0.0435 0.2814 ...
> str(B)
num [1:17730] 0.0118 0.0196 0.0344 0.0207 0.0566 ...
But for some reason when I used sort()
:
> length(sort(A))
[1] 490
> length(sort(B))
[1] 17729 #should be 17730
I don't know how to produce a reproducible example in this particular case, and I'm stuck on how I should go about troubleshooting this. What should I check?