I have a toy data as follows:
toy.df <- data.frame(col1 = rnorm(10))
I want to add a new column indicating the order of values(descending) in col1. I need the order index to be numbers from 1:10.
Do you have any idea?
I have a toy data as follows:
toy.df <- data.frame(col1 = rnorm(10))
I want to add a new column indicating the order of values(descending) in col1. I need the order index to be numbers from 1:10.
Do you have any idea?
Copyright © 2021 Jogjafile Inc.