In my dataset, there are values from 1.1 to 1.12
R, by default, order them showing 1.10, 1.11 and 1.12 before 1.2.
Example:
## V1 V2
## A 1.1
## B 1.10
## J 1.11
## K 1.12
## G 1.2
## D 1.3
## E 1.4
## J 1.5
## G 1.6
## T 1.7
## R 1.8
## O 1.9
How can I change the order of V2 ordering the values from 1.1 to 1.12?
(In this way)
## V1 V2
## A 1.1
## G 1.2
## D 1.3
## E 1.4
## J 1.5
## G 1.6
## T 1.7
## R 1.8
## O 1.9
## B 1.10
## J 1.11
## K 1.12
of course my real dataset is more complex but i belive that a solution for this case could solve my problem
Thanks!