I have a data frame with two columns (data will not always be identical).
1 1
2 2
3 3
0 0
-1 -1
-2 -2
-3 -3
What I would like to do is create another column for the top 10% of the column and the bottom 10% of the column to be used as labels for a scatter plot.
1 1
2 2
3 3 1
0 0
-1 -1
-2 -2
-3 -3 2
In addition, it needs to be able to select and label from either column the top/bottom 10%
Any ideas?