How do I sort in descending order in r?
Answer / Atalesh Kumar Verma
In R, you can use the 'sort' function with the 'decreasing=TRUE' argument to sort a vector in descending order. For example: sort(myVector, decreasing=TRUE). If myVector is not a vector, you should first convert it to a vector using as.vector().
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the tools for debugging in R?
How many tools for debugging present in r?
What are r matrices and r matrices functions?
Why is R Good for business?
What are the rules to define a variable name in r programming language?
How would you do a left and right join in r?
How can you resample statistical tests in r language?
Explain bor function?
How can you simulate random walk model using r?
What is compiler in r?
What is oop in r?
What is attribute function in r?